]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390/smp: Make cpu notifier symetric
authorThomas Gleixner <tglx@linutronix.de>
Fri, 4 Nov 2016 14:41:41 +0000 (15:41 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 9 Nov 2016 22:45:28 +0000 (23:45 +0100)
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>
arch/s390/kernel/smp.c

index 35531fe1c5ea91c05b5d43a71e5de03894024287..2a9c03df95e903fa1f3995ce307392f1ff9051b5 100644 (file)
@@ -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;
        }