[PATCH] fix sched_idle typo

From: Martin J. Bligh (mbligh@aracnet.com)
Date: Tue Apr 08 2003 - 21:56:14 EST


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/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:17 EST