public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix scheduler bug not passing idle
@ 2003-06-09 20:32 Martin J. Bligh
  0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-06-09 20:32 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-09 20:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-09 20:32 [PATCH] fix scheduler bug not passing idle Martin J. Bligh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox