aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-08-02 08:11:26 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-02 08:23:57 -0400
commit8e9ed8b02490fea577b1eb1704c05bf43c891ed7 (patch)
tree3c0cc5dd498abcf0cc894e85509c131a0dde9a43 /kernel/sched.c
parent716a42348cdaf04534b15fbdc9c83e25baebfed5 (diff)
parent07903af152b0597d94e9b0030746b63c4664e787 (diff)
Merge branch 'sched/urgent' into sched/core
Merge reason: avoid upcoming patch conflict. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 953f037dc053..ce1056e9b02a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7318,6 +7318,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu)
7318static void calc_global_load_remove(struct rq *rq) 7318static void calc_global_load_remove(struct rq *rq)
7319{ 7319{
7320 atomic_long_sub(rq->calc_load_active, &calc_load_tasks); 7320 atomic_long_sub(rq->calc_load_active, &calc_load_tasks);
7321 rq->calc_load_active = 0;
7321} 7322}
7322#endif /* CONFIG_HOTPLUG_CPU */ 7323#endif /* CONFIG_HOTPLUG_CPU */
7323 7324
@@ -7544,6 +7545,7 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
7544 task_rq_unlock(rq, &flags); 7545 task_rq_unlock(rq, &flags);
7545 get_task_struct(p); 7546 get_task_struct(p);
7546 cpu_rq(cpu)->migration_thread = p; 7547 cpu_rq(cpu)->migration_thread = p;
7548 rq->calc_load_update = calc_load_update;
7547 break; 7549 break;
7548 7550
7549 case CPU_ONLINE: 7551 case CPU_ONLINE:
@@ -7554,8 +7556,6 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
7554 /* Update our root-domain */ 7556 /* Update our root-domain */
7555 rq = cpu_rq(cpu); 7557 rq = cpu_rq(cpu);
7556 spin_lock_irqsave(&rq->lock, flags); 7558 spin_lock_irqsave(&rq->lock, flags);
7557 rq->calc_load_update = calc_load_update;
7558 rq->calc_load_active = 0;
7559 if (rq->rd) { 7559 if (rq->rd) {
7560 BUG_ON(!cpumask_test_cpu(cpu, rq->rd->span)); 7560 BUG_ON(!cpumask_test_cpu(cpu, rq->rd->span));
7561 7561