Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1355764 > unrolled thread

[PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument

Started byAnna-Maria Gleixner <anna-maria@linutronix.de>
First post2016-03-11 10:30 +0100
Last post2016-03-11 10:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument Anna-Maria Gleixner <anna-maria@linutronix.de> - 2016-03-11 10:30 +0100

#1355764 — [PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument

FromAnna-Maria Gleixner <anna-maria@linutronix.de>
Date2016-03-11 10:30 +0100
Subject[PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument
Message-ID<rbryp-3Zo-13@gated-at.bofh.it>
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@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)

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web