aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2015-10-20 10:46:26 +0200
committerJon Medhurst <tixy@linaro.org>2016-04-13 11:44:18 +0100
commite7d1c85d8f26b8d6a3515cc4e18066c86e2a600f (patch)
treed600972364682b2a85318c840e4b68d45d617b7e /kernel
parent5ec66cf6954cb2c4aaf5ffb8f46da55d04a6d228 (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. Change-Id: I65a8c9be85164a7c1b39be5380e8807c49db850b Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Steve Muckle <smuckle@linaro.org> (am from https://patchwork.kernel.org/patch/7804851/) Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Diffstat (limited to 'kernel')
-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 92e71c396cea..d59427ccdee1 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1563,7 +1563,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) { }