fixup! sched: scheduler-driven cpu frequency selection
authorJuri Lelli <juri.lelli@arm.com>
Fri, 11 Dec 2015 11:55:51 +0000 (11:55 +0000)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:53:23 +0000 (16:53 +0800)
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
kernel/sched/cpufreq_sched.c

index 5afe56a82491425a69930534d4991dba2add6adb..e1d208e101ed86ab6c835867a7cac9ed97b07d6c 100644 (file)
@@ -119,9 +119,9 @@ static int cpufreq_sched_thread(void *data)
        }
 
        do {
-               set_current_state(TASK_INTERRUPTIBLE);
                new_request = gd->requested_freq;
                if (new_request == last_request) {
+                       set_current_state(TASK_INTERRUPTIBLE);
                        schedule();
                } else {
                        /*