[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1457687995-40417-1-git-send-email-anna-maria@linutronix.de>
Date: Fri, 11 Mar 2016 10:19:55 +0100
From: Anna-Maria Gleixner <anna-maria@...utronix.de>
To: linux-kernel@...r.kernel.org
Cc: rt@...utronix.de, Anna-Maria Gleixner <anna-maria@...utronix.de>,
Russell King <linux@....linux.org.uk>,
linux-arm-kernel@...ts.infradead.org
Subject: [PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument
The action argument of the hotplug transition switch case is masked
with '0xf' to map CPU_XXX_FROZEN hotplug transition on corresponding
non frozen hotplug transitions. There is a global define
CPU_TASKS_FROZEN used as mask for frozen hotplug transitions.
Use '~CPU_TASKS_FROZEN' instead of '0xf'.
Cc: Russell King <linux@....linux.org.uk>
Cc: linux-arm-kernel@...ts.infradead.org
Signed-off-by: Anna-Maria Gleixner <anna-maria@...utronix.de>
---
arch/arm/common/bL_switcher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/arm/common/bL_switcher.c
+++ b/arch/arm/common/bL_switcher.c
@@ -762,7 +762,7 @@ static int bL_switcher_hotplug_callback(
{
if (bL_switcher_active) {
int pairing = bL_switcher_cpu_pairing[(unsigned long)hcpu];
- switch (action & 0xf) {
+ switch (action & ~CPU_TASKS_FROZEN) {
case CPU_UP_PREPARE:
case CPU_DOWN_PREPARE:
if (pairing == -1)
Powered by blists - more mailing lists