[PATCH] sh: smp: Add missing FROZEN hotplug notifier transitions

From: Anna-Maria Gleixner
Date: Tue May 24 2016 - 09:19:55 EST


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@xxxxxxxxxxxxxxxxxxxx>
Cc: Rich Felker <dalias@xxxxxxxx>
Cc: linux-sh@xxxxxxxxxxxxxxx
Signed-off-by: Anna-Maria Gleixner <anna-maria@xxxxxxxxxxxxx>
---
arch/sh/kernel/cpu/sh4a/smp-shx3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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