Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Thomas Gleixner <tglx@linutronix.de>

+1 -1
+1 -1
arch/x86/kernel/apb_timer.c
··· 221 221 unsigned long cpu = (unsigned long)hcpu; 222 222 struct apbt_dev *adev = &per_cpu(cpu_apbt_dev, cpu); 223 223 224 - switch (action & 0xf) { 224 + switch (action & ~CPU_TASKS_FROZEN) { 225 225 case CPU_DEAD: 226 226 dw_apb_clockevent_pause(adev->timer); 227 227 if (system_state == SYSTEM_RUNNING) {