aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2015-10-20 10:46:26 +0200
committerPunit Agrawal <punit.agrawal@arm.com>2016-03-21 12:42:06 +0000
commite724121586dfa7df4301dedaf7af5ce7facaf4a2 (patch)
tree3074657a2ffac6f2cc9d36053f0dd51bd2457037
parent61b0e4f12648a567ee648b74dfae2e1d3ccbc314 (diff)
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: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Steve Muckle <smuckle@linaro.org>
-rw-r--r--kernel/sched/sched.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 6aaff682adb8..770e119ca692 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -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) { }