Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 795949da authored by Vincent Guittot's avatar Vincent Guittot Committed by Dmitry Shmidt
Browse files

ANDROID: sched: remove call of sched_avg_update from sched_rt_avg_update



rt_avg is only used to scale the available CPU's capacity for CFS
tasks.  As the update of this scaling is done during periodic load
balance, we only have to ensure that sched_avg_update has been called
before any periodic load balancing. This requirement is already
fulfilled by __update_cpu_load so the call in sched_rt_avg_update,
which is part of the hotpath, is useless.

Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: default avatarSteve Muckle <smuckle@linaro.org>
Signed-off-by: default avatarAndres Oportus <andresoportus@google.com>
parent bb5fca24
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1643,7 +1643,6 @@ static inline void set_dl_cpu_capacity(int cpu, bool request,
static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta)
{
	rq->rt_avg += rt_delta * arch_scale_freq_capacity(NULL, cpu_of(rq));
	sched_avg_update(rq);
}
#else
static inline void sched_rt_avg_update(struct rq *rq, u64 rt_delta) { }