aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-03-19 12:17:24 +0100
committerThomas Gleixner <tglx@linutronix.de>2016-03-19 13:40:08 +0100
commitf80be5e3d5aaea26c7351f4f08ab67fc4325a4ff (patch)
tree02b38f3bffb50516ecb0533f70a93f4d3a80dee0 /arch
parentx86/apic/uv: Fix the hotplug notifier (diff)
downloadlinux-dev-f80be5e3d5aaea26c7351f4f08ab67fc4325a4ff.tar.xz
linux-dev-f80be5e3d5aaea26c7351f4f08ab67fc4325a4ff.zip
x86/hpet: 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/hpet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index be0ebbb6d1d1..a1f0e4a5c47e 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -717,7 +717,7 @@ static int hpet_cpuhp_notify(struct notifier_block *n,
struct hpet_work_struct work;
struct hpet_dev *hdev = per_cpu(cpu_hpet_dev, cpu);
- switch (action & 0xf) {
+ switch (action & ~CPU_TASKS_FROZEN) {
case CPU_ONLINE:
INIT_DELAYED_WORK_ONSTACK(&work.work, hpet_work);
init_completion(&work.complete);