lkml.org 
[lkml]   [2016]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/25] s390/smp: Make cpu notifier symetric
    Date
    From: Thomas Gleixner <tglx@linutronix.de>

    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.

    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
    Cc: linux-s390@vger.kernel.org
    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
    ---
    arch/s390/kernel/smp.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c
    index 35531fe1c5ea..1a21e66c484a 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;
    }
    --
    2.10.2
    \
     
     \ /
      Last update: 2016-11-03 15:55    [W:2.280 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site