OSDN Git Service

sched/fair: Fix issue with trace flag not being set properly
authorOlav Haugan <ohaugan@codeaurora.org>
Tue, 18 Oct 2016 00:05:54 +0000 (17:05 -0700)
committerOlav Haugan <ohaugan@codeaurora.org>
Tue, 18 Oct 2016 00:05:54 +0000 (17:05 -0700)
During scheduler boost the sched_task_load ftrace event might not log
the correct flag value. Ensure that the flag is always initialized with
the selected cluster information.

Change-Id: Ia986d0fbc512c8e9ed1b5fb5b2ac4bc564cc4ba9
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
kernel/sched/fair.c

index 6362b86..98ae451 100644 (file)
@@ -3189,8 +3189,8 @@ retry:
                }
        }
        p->last_cpu_selected_ts = sched_ktime_clock();
-       sbc_flag |= env.sbc_best_cluster_flag;
 out:
+       sbc_flag |= env.sbc_best_cluster_flag;
        rcu_read_unlock();
        trace_sched_task_load(p, sched_boost(), env.reason, env.sync,
                                        env.need_idle, sbc_flag, target);