[patch 06/15] sched: Move sched_domains_numa_masks_clear() to DOWN_PREPARE

Thomas Gleixner
2016-03-10T12:08:27Z

[-- Attachment #1: sched--Move-sched_domains_numa_masks_clear---to-DOWN_PREPARE.patch --]
[-- Type: text/plain, Size: 516 bytes --]

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>
---
kernel/sched/core.c | 3 ---
1 file changed, 3 deletions(-)

--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7372,9 +7372,6 @@ static int sched_cpu_inactive(struct not
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;