fix scheduler bug not passing idle
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
@@ -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 ;