diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-11-04 15:41:41 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-11-09 23:45:28 +0100 |
commit | ef65d45cbfbb438a5fbe8ef3fc424314ff1e8b7c (patch) | |
tree | 85b17290b1321fd98e96add9f9f06233c58e1711 /arch | |
parent | a4fc1bfc42062e8bc7b2271a90d17403b096ce5d (diff) | |
download | linux-stable-ef65d45cbfbb438a5fbe8ef3fc424314ff1e8b7c.tar.gz linux-stable-ef65d45cbfbb438a5fbe8ef3fc424314ff1e8b7c.tar.bz2 linux-stable-ef65d45cbfbb438a5fbe8ef3fc424314ff1e8b7c.zip |
s390/smp: Make cpu notifier symetric
There is no reason to remove the sysfs cpu files when the CPU is dead, they
can be removed when the cpu is prepared to go down. Doing it at
DOWN_PREPARE allows us to convert it to a symetric hotplug state in the
next step.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: linux-s390@vger.kernel.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20161104144140.lcee6kwmwlx37m7g@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/smp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 35531fe1c5ea..2a9c03df95e9 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c @@ -1056,9 +1056,10 @@ static int smp_cpu_notify(struct notifier_block *self, unsigned long action, switch (action & ~CPU_TASKS_FROZEN) { case CPU_ONLINE: + case CPU_DOWN_FAILED: err = sysfs_create_group(&s->kobj, &cpu_online_attr_group); break; - case CPU_DEAD: + case CPU_DOWN_PREPARE: sysfs_remove_group(&s->kobj, &cpu_online_attr_group); break; } |