Message ID | 20180123180847.4477-4-patrick.bellasi@arm.com |
---|---|
State | New |
Headers | show |
Series | [v3,1/3] sched/fair: add util_est on top of PELT | expand |
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 0b4d9750a927..08a80ee8f89e 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -2128,7 +2128,12 @@ static inline unsigned long cpu_util_dl(struct rq *rq) static inline unsigned long cpu_util_cfs(struct rq *rq) { - return rq->cfs.avg.util_avg; + unsigned long util_est = rq->cfs.avg.util_avg; + + if (sched_feat(UTIL_EST)) + util_est = max(util_est, rq->cfs.util_est_runnable); + + return util_est; } #endif