Neither intel_pstate nor schedutil care for the flag anymore, so remove the update and flag definition. Signed-off-by: Christian Loehle <christian.loehle@xxxxxxx> --- include/linux/sched/cpufreq.h | 2 -- kernel/sched/fair.c | 8 -------- 2 files changed, 10 deletions(-) diff --git a/include/linux/sched/cpufreq.h b/include/linux/sched/cpufreq.h index bdd31ab93bc5..d4af813d3126 100644 --- 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; diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 9057584ec06d..5cae0e5619aa 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6759,14 +6759,6 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags) */ 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; -- 2.34.1