/*
* When comparing with imbalance, use weighted_cpuload()
* which is not scaled with the cpu power.
*/ if(capacity && rq->nr_running == 1 && wl > imbalance) continue;
/*
* For the load comparisons with the other cpu's, consider
* the weighted_cpuload() scaled with the cpu power, so that
* the load can be moved away from the cpu that is potentially
* running at a lower capacity.
*/
wl =(wl * SCHED_LOAD_SCALE)/ power;