Displaying 1 result from an estimated 1 matches for "migrate_factor".
2011 Mar 14
0
[PATCH 3/3] _csched_cpu_pick(): simplify sched_smt_power_savings dependent condition
...weight_nxt = cpus_weight(nxt_idlers);
/* smt_power_savings: consolidate work rather than spreading it */
- if ( ( sched_smt_power_savings
- && (weight_cpu > weight_nxt) )
- || ( !sched_smt_power_savings
- && (weight_cpu * migrate_factor < weight_nxt) ) )
+ if ( sched_smt_power_savings ?
+ weight_cpu > weight_nxt :
+ weight_cpu * migrate_factor < weight_nxt )
{
cpus_and(nxt_idlers, cpus, nxt_idlers);
spc = CSCHED_PCPU(nxt);
_____________________________...