Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a38f9873 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

x86/apb/timer: Use proper mask to modify hotplug action



Magic hex constants are a guarantee for wreckage when the defines change.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 3e8db224
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ static int apbt_cpuhp_notify(struct notifier_block *n,
	unsigned long cpu = (unsigned long)hcpu;
	struct apbt_dev *adev = &per_cpu(cpu_apbt_dev, cpu);

	switch (action & 0xf) {
	switch (action & ~CPU_TASKS_FROZEN) {
	case CPU_DEAD:
		dw_apb_clockevent_pause(adev->timer);
		if (system_state == SYSTEM_RUNNING) {