|
@@ -4500,6 +4500,14 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
|
|
struct cfs_rq *cfs_rq;
|
|
struct cfs_rq *cfs_rq;
|
|
struct sched_entity *se = &p->se;
|
|
struct sched_entity *se = &p->se;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * 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_this_cpu(rq, SCHED_CPUFREQ_IOWAIT);
|
|
|
|
+
|
|
for_each_sched_entity(se) {
|
|
for_each_sched_entity(se) {
|
|
if (se->on_rq)
|
|
if (se->on_rq)
|
|
break;
|
|
break;
|