diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f20951e23f5a..7777ea6a6b9b 100755 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5311,7 +5311,7 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags) * utilization updates, so do it here explicitly with the IOWAIT flag * passed. */ - if (p->in_iowait) + if (p->in_iowait && prefer_idle) cpufreq_update_util(rq, SCHED_CPUFREQ_IOWAIT); for_each_sched_entity(se) {