From fd1e0723b0a7ad140d2bf7cd9154997d5ece2b37 Mon Sep 17 00:00:00 2001 From: Christian Loehle Date: Thu, 5 Sep 2024 10:26:44 +0100 Subject: cpufreq: Remove SCHED_CPUFREQ_IOWAIT update Neither intel_pstate nor schedutil care for the flag anymore, so remove the update and flag definition. Signed-off-by: Christian Loehle --- include/linux/sched/cpufreq.h | 2 -- kernel/sched/fair.c | 8 -------- 2 files changed, 10 deletions(-) --- a/include/linux/sched/cpufreq.h +++ b/include/linux/sched/cpufreq.h @@ -8,8 +8,6 @@ * Interface between cpufreq drivers and the scheduler: */ -#define SCHED_CPUFREQ_IOWAIT (1U << 0) - #ifdef CONFIG_CPU_FREQ struct cpufreq_policy; --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6768,14 +6768,6 @@ enqueue_task_fair(struct rq *rq, struct */ util_est_enqueue(&rq->cfs, p); - /* - * If in_iowait is set, the code below may not trigger any cpufreq - * utilization updates, so do it here explicitly with the IOWAIT flag - * passed. - */ - if (p->in_iowait) - cpufreq_update_util(rq, SCHED_CPUFREQ_IOWAIT); - for_each_sched_entity(se) { if (se->on_rq) break;