fixup! sched/fair: jump to max OPP when crossing UP threshold
authorJuri Lelli <juri.lelli@arm.com>
Fri, 11 Dec 2015 11:58:05 +0000 (11:58 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:28:22 +0000 (14:58 +0530)
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
kernel/sched/core.c

index 573dcb62b3b3962a1e64bf38527a68b3d75f3cc9..4d388d070a2e3f09645b153fcc0bb9f95b8300fe 100644 (file)
@@ -2910,6 +2910,7 @@ void scheduler_tick(void)
        curr->sched_class->task_tick(rq, curr, 0);
        update_cpu_load_active(rq);
        calc_global_load_tick(rq);
+       sched_freq_tick(cpu);
        raw_spin_unlock(&rq->lock);
 
        perf_event_task_tick();
@@ -2919,8 +2920,6 @@ void scheduler_tick(void)
        trigger_load_balance(rq);
 #endif
        rq_last_tick_reset(rq);
-
-       sched_freq_tick(cpu);
 }
 
 #ifdef CONFIG_NO_HZ_FULL