|
@@ -2000,7 +2000,7 @@ static unsigned long source_load(int cpu, int type)
|
|
|
struct rq *rq = cpu_rq(cpu);
|
|
|
unsigned long total = weighted_cpuload(cpu);
|
|
|
|
|
|
- if (type == 0)
|
|
|
+ if (type == 0 || !sched_feat(LB_BIAS))
|
|
|
return total;
|
|
|
|
|
|
return min(rq->cpu_load[type-1], total);
|
|
@@ -2015,7 +2015,7 @@ static unsigned long target_load(int cpu, int type)
|
|
|
struct rq *rq = cpu_rq(cpu);
|
|
|
unsigned long total = weighted_cpuload(cpu);
|
|
|
|
|
|
- if (type == 0)
|
|
|
+ if (type == 0 || !sched_feat(LB_BIAS))
|
|
|
return total;
|
|
|
|
|
|
return max(rq->cpu_load[type-1], total);
|