diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-03-19 11:41:42 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-03-19 13:40:08 +0100 |
commit | a38f98735e168a20573c24dfffa96095b6fe1d23 (patch) | |
tree | 27c59a11837e86ea22d22770b40cba5a3cd8d1e6 | |
parent | 3e8db2246b434c6b18a6a9f09904038bddcf76c7 (diff) | |
download | op-kernel-dev-a38f98735e168a20573c24dfffa96095b6fe1d23.zip op-kernel-dev-a38f98735e168a20573c24dfffa96095b6fe1d23.tar.gz |
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>
-rw-r--r-- | arch/x86/kernel/apb_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c index 222a570..cefacba 100644 --- a/arch/x86/kernel/apb_timer.c +++ b/arch/x86/kernel/apb_timer.c @@ -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) { |