|
@@ -717,10 +717,6 @@ static void update_curr_dl(struct rq *rq)
|
|
|
if (!dl_task(curr) || !on_dl_rq(dl_se))
|
|
|
return;
|
|
|
|
|
|
- /* Kick cpufreq (see the comment in linux/cpufreq.h). */
|
|
|
- if (cpu_of(rq) == smp_processor_id())
|
|
|
- cpufreq_trigger_update(rq_clock(rq));
|
|
|
-
|
|
|
/*
|
|
|
* Consumed budget is computed considering the time as
|
|
|
* observed by schedulable tasks (excluding time spent
|
|
@@ -736,6 +732,10 @@ static void update_curr_dl(struct rq *rq)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ /* kick cpufreq (see the comment in linux/cpufreq.h). */
|
|
|
+ if (cpu_of(rq) == smp_processor_id())
|
|
|
+ cpufreq_trigger_update(rq_clock(rq));
|
|
|
+
|
|
|
schedstat_set(curr->se.statistics.exec_max,
|
|
|
max(curr->se.statistics.exec_max, delta_exec));
|
|
|
|