[patch 10/15] sched/migration: Move calc_load_migrate() into CPU_DYING

Thomas Gleixner
2016-03-10T12:07:59Z

[-- Attachment #1: sched-migration--Move-calc_load_migrate---into-CPU_DYING.patch --]
[-- Type: text/plain, Size: 733 bytes --]

It really does not matter when we fold the load for the outgoing cpu. It's
almost dead anyway, so there is no harm if we fail to fold the few
microseconds which are required for going fully away.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/sched/core.c | 3 ---
1 file changed, 3 deletions(-)

Index: b/kernel/sched/core.c
===================================================================
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5685,9 +5685,6 @@ migration_call(struct notifier_block *nf
migrate_tasks(rq);
BUG_ON(rq->nr_running != 1); /* the migration thread */
raw_spin_unlock_irqrestore(&rq->lock, flags);
- break;
-
- case CPU_DEAD:
calc_load_migrate(rq);
break;
#endif