aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 10d43f5bf0fc..6c5eb3bc37e0 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2000,7 +2000,7 @@ static unsigned long source_load(int cpu, int type)
2000 struct rq *rq = cpu_rq(cpu); 2000 struct rq *rq = cpu_rq(cpu);
2001 unsigned long total = weighted_cpuload(cpu); 2001 unsigned long total = weighted_cpuload(cpu);
2002 2002
2003 if (type == 0) 2003 if (type == 0 || !sched_feat(LB_BIAS))
2004 return total; 2004 return total;
2005 2005
2006 return min(rq->cpu_load[type-1], total); 2006 return min(rq->cpu_load[type-1], total);
@@ -2015,7 +2015,7 @@ static unsigned long target_load(int cpu, int type)
2015 struct rq *rq = cpu_rq(cpu); 2015 struct rq *rq = cpu_rq(cpu);
2016 unsigned long total = weighted_cpuload(cpu); 2016 unsigned long total = weighted_cpuload(cpu);
2017 2017
2018 if (type == 0) 2018 if (type == 0 || !sched_feat(LB_BIAS))
2019 return total; 2019 return total;
2020 2020
2021 return max(rq->cpu_load[type-1], total); 2021 return max(rq->cpu_load[type-1], total);