aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/sched
diff options
context:
space:
mode:
authorVincent Guittot <vincent.guittot@linaro.org>2020-01-15 11:20:20 +0100
committerPeter Zijlstra <peterz@infradead.org>2020-01-17 10:19:22 +0100
commita4f9a0e51bbf89cb461b1985a1a570e6b87da3b5 (patch)
tree9a4f99835b7065a85a2832921bde7ef3f2233503 /include/linux/sched
parentsched/psi: create /proc/pressure and /proc/pressure/{io|memory|cpu} only when psi enabled (diff)
downloadwireguard-linux-a4f9a0e51bbf89cb461b1985a1a570e6b87da3b5.tar.xz
wireguard-linux-a4f9a0e51bbf89cb461b1985a1a570e6b87da3b5.zip
sched/fair: Remove redundant call to cpufreq_update_util()
With commit bef69dd87828 ("sched/cpufreq: Move the cfs_rq_util_change() call to cpufreq_update_util()") update_load_avg() has become the central point for calling cpufreq (not including the update of blocked load). This change helps to simplify further the number of calls to cpufreq_update_util() and to remove last redundant ones. With update_load_avg(), we are now sure that cpufreq_update_util() will be called after every task attachment to a cfs_rq and especially after propagating this event down to the util_avg of the root cfs_rq, which is the level that is used by cpufreq governors like schedutil to set the frequency of a CPU. The SCHED_CPUFREQ_MIGRATION flag forces an early call to cpufreq when the migration happens in a cgroup whereas util_avg of root cfs_rq is not yet updated and this call is duplicated with the one that happens immediately after when the migration event reaches the root cfs_rq. The dedicated flag SCHED_CPUFREQ_MIGRATION is now useless and can be removed. The interface of attach_entity_load_avg() can also be simplified accordingly. Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://lkml.kernel.org/r/1579083620-24943-1-git-send-email-vincent.guittot@linaro.org
Diffstat (limited to 'include/linux/sched')
-rw-r--r--include/linux/sched/cpufreq.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/sched/cpufreq.h b/include/linux/sched/cpufreq.h
index cc6bcc1e96bc..3ed5aa18593f 100644
--- a/include/linux/sched/cpufreq.h
+++ b/include/linux/sched/cpufreq.h
@@ -9,7 +9,6 @@
*/
#define SCHED_CPUFREQ_IOWAIT (1U << 0)
-#define SCHED_CPUFREQ_MIGRATION (1U << 1)
#ifdef CONFIG_CPU_FREQ
struct cpufreq_policy;