linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument
@ 2016-03-11  9:19 Anna-Maria Gleixner
  0 siblings, 0 replies; only message in thread
From: Anna-Maria Gleixner @ 2016-03-11  9:19 UTC (permalink / raw)
  To: linux-arm-kernel

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@arm.linux.org.uk>
Cc: linux-arm-kernel at lists.infradead.org
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-11  9:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-11  9:19 [PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument Anna-Maria Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).