summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2016-10-17 17:05:54 -0700
committerOlav Haugan <ohaugan@codeaurora.org>2016-10-17 17:05:54 -0700
commit34418fc16ee38e61cd135717b464d9e792925ea0 (patch)
tree2bc6cd1a888658e8583845565e2a5f08b3921af7 /kernel
parent827d0483007ace97844284be67624f1e06ff54e9 (diff)
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 6362b864e2b1..98ae45174a40 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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);