From: Thomas Gleixner <tglx@linutronix.de>
Date: Sat, 19 Mar 2016 10:41:42 +0000 (+0100)
Subject: x86/apb/timer: Use proper mask to modify hotplug action
X-Git-Tag: v4.6-rc1~35^2~5
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a38f98735e168a20573c24dfffa96095b6fe1d23;p=linux.git

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>
---

diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c
index 222a57076039..cefacbad1531 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) {