sched/fair: Move cpufreq hook to update_cfs_rq_load_avg()
authorSteve Muckle <steve.muckle@linaro.org>
Tue, 22 Mar 2016 00:21:07 +0000 (17:21 -0700)
committerIngo Molnar <mingo@kernel.org>
Sat, 23 Apr 2016 12:20:35 +0000 (14:20 +0200)
commit21e96f88776deead303ecd30a17d1d7c2a1776e3
tree28ad0c820987a4dcd36ab6fd56f954d980f240c8
parent1f621e028baf391f6684003e32e009bc934b750f
sched/fair: Move cpufreq hook to update_cfs_rq_load_avg()

The cpufreq hook should be called whenever the root cfs_rq
utilization changes so update_cfs_rq_load_avg() is a better
place for it. The current location is not invoked in the
enqueue_entity() or update_blocked_averages() paths.

Suggested-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Steve Muckle <smuckle@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Juri Lelli <Juri.Lelli@arm.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Morten Rasmussen <morten.rasmussen@arm.com>
Cc: Patrick Bellasi <patrick.bellasi@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rafael@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1458606068-7476-1-git-send-email-smuckle@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c