[PATCH] fix scheduler bug not passing idle

From: Martin J. Bligh (mbligh@aracnet.com)
Date: Mon Jun 09 2003 - 15:32:08 EST


rebalance_tick is not properly passing the idle argument through to
load_balance in one case. The fix is trivial. Pointed out by John Hawkes.

diff -purN -X /home/mbligh/.diff.exclude mm5/kernel/sched.c mm5-idle/kernel/sched.c
--- mm5/kernel/sched.c 2003-06-09 13:28:47.000000000 -0700
+++ mm5-idle/kernel/sched.c 2003-06-09 13:31:20.000000000 -0700
@@ -1107,7 +1107,7 @@ static void rebalance_tick(runqueue_t *t
 #endif
                 if (!(j % IDLE_REBALANCE_TICK)) {
                         spin_lock(&this_rq->lock);
- 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 : Sun Jun 15 2003 - 22:00:21 EST