sched/fair: Fix issue with trace flag not being set properly

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>
This commit is contained in:
Olav Haugan 2016-10-17 17:05:54 -07:00
parent 827d048300
commit 34418fc16e

View 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);