diff mbox

sh: smp: Add missing FROZEN hotplug notifier transitions

Message ID 1464095975-56587-1-git-send-email-anna-maria@linutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Anna-Maria Behnsen May 24, 2016, 1:19 p.m. UTC
The corresponding FROZEN hotplug notifier transitions used on
suspend/resume are ignored. Therefore the switch case action argument
is masked with the frozen hotplug notifier transition mask.

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
---
 arch/sh/kernel/cpu/sh4a/smp-shx3.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/arch/sh/kernel/cpu/sh4a/smp-shx3.c
+++ b/arch/sh/kernel/cpu/sh4a/smp-shx3.c
@@ -127,7 +127,7 @@  shx3_cpu_callback(struct notifier_block
 {
 	unsigned int cpu = (unsigned int)hcpu;
 
-	switch (action) {
+	switch (action & ~CPU_TASKS_FROZEN) {
 	case CPU_UP_PREPARE:
 		shx3_update_boot_vector(cpu);
 		break;