sched: Move sched_domains_numa_masks_clear() to DOWN_PREPARE
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Mar 2016 11:54:12 +0000 (12:54 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 6 May 2016 12:58:23 +0000 (14:58 +0200)
This is the last operation on the cpu before vanishing. No point in calling
that on CPU_DEAD.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: rt@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/sched/core.c

index 8a03a04f5c3a777ee4be4f983dfae7d25487e2fc..541f9ab8ce4f1b6b94ac39385c20c717324e1137 100644 (file)
@@ -7139,9 +7139,6 @@ static int sched_cpu_inactive(struct notifier_block *nfb,
                        set_cpu_active(cpu, true);
                        return notifier_from_errno(ret);
                }
-               return NOTIFY_OK;
-
-       case CPU_DEAD:
                sched_domains_numa_masks_clear(cpu);
                return NOTIFY_OK;
        default: