Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -1
+2 -1
arch/s390/kernel/smp.c
··· 1056 1056 1057 1057 switch (action & ~CPU_TASKS_FROZEN) { 1058 1058 case CPU_ONLINE: 1059 + case CPU_DOWN_FAILED: 1059 1060 err = sysfs_create_group(&s->kobj, &cpu_online_attr_group); 1060 1061 break; 1061 - case CPU_DEAD: 1062 + case CPU_DOWN_PREPARE: 1062 1063 sysfs_remove_group(&s->kobj, &cpu_online_attr_group); 1063 1064 break; 1064 1065 }