Commit dd1b5a41 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix scheduler bug not passing idle

From: "Martin J. Bligh" <mbligh@aracnet.com>

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.
parent 95203fe7
...@@ -1108,7 +1108,7 @@ static void rebalance_tick(runqueue_t *this_rq, int idle) ...@@ -1108,7 +1108,7 @@ static void rebalance_tick(runqueue_t *this_rq, int idle)
#endif #endif
if (!(j % IDLE_REBALANCE_TICK)) { if (!(j % IDLE_REBALANCE_TICK)) {
spin_lock(&this_rq->lock); 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); spin_unlock(&this_rq->lock);
} }
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment