Skip to contentSkip to conversation

fix scheduler bug not passing idle

PATCH New Martin J. Bligh 1 participant 1 message Jun 9, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix scheduler bug not passing idle

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.

kernel/sched.c +1 -1
diff -purN -X /home/mbligh/.diff.exclude mm5/kernel/sched.c mm5-idle/kernel/sched.c
@@ -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;