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


Groups > linux.kernel > #1406158

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

From Anna-Maria Gleixner <anna-maria@linutronix.de>
Newsgroups linux.kernel
Subject [PATCH] sh: smp: Add missing FROZEN hotplug notifier transitions
Date 2016-05-24 15:20 +0200
Message-ID <rCkpA-3IP-29@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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(-)

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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] sh: smp: Add missing FROZEN hotplug notifier transitions Anna-Maria Gleixner <anna-maria@linutronix.de> - 2016-05-24 15:20 +0200

csiph-web