sched: remove call of sched_avg_update from sched_rt_avg_update
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 20 Oct 2015 08:46:26 +0000 (10:46 +0200)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:42:06 +0000 (12:42 +0000)
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: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Steve Muckle <smuckle@linaro.org>
kernel/sched/sched.h

index 6aaff682adb8b6f01d3b9e3ced96342b220a6ca8..770e119ca6928a83f12acb1cc0400ac5159215a4 100644 (file)
@@ -1578,7 +1578,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) { }