[PATCH] fix sched_idle typo

Martin J. Bligh (mbligh@aracnet.com)
Tue, 08 Apr 2003 19:56:14 -0700


We're in the idle section, so we should flag the load balance as idle.
Ooops. Pointed out by John Hawkes

diff -urpN -X /home/fletch/.diff.exclude 681-disable_preempt/kernel/sched.c 682-sched_idle/kernel/sched.c
--- 681-disable_preempt/kernel/sched.c Tue Apr 8 18:06:11 2003
+++ 682-sched_idle/kernel/sched.c Tue Apr 8 18:07:18 2003
@@ -1306,7 +1306,7 @@ static void rebalance_tick(runqueue_t *t
if (!(j % IDLE_REBALANCE_TICK)) {
spin_lock(&this_rq->lock);
schedstats[this_cpu].lb_idle++;
- load_balance(this_rq, 0, cpu_to_node_mask(this_cpu));
+ load_balance(this_rq, idle, cpu_to_node_mask(this_cpu));
spin_unlock(&this_rq->lock);
}
return;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/