diff options
| author | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2017-01-04 14:10:31 +0530 |
|---|---|---|
| committer | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2017-01-07 13:49:22 +0530 |
| commit | 432662eb4d3e33c94aac70b5359e83e1cd2ce64c (patch) | |
| tree | e6406599f2516f5abcdc1f56e9854fb74a4c0e2f /kernel/sched/hmp.c | |
| parent | e4e95be265dd7e26be33c7af8291b0b94315f477 (diff) | |
sched: fix stale predicted load in trace_sched_get_busy()
When early detection notification is pending, we skip calculating
predicted load. Initialize it to 0 so that stale value does not
get printed in trace_sched_get_busy().
Change-Id: I36287c0081f6c12191235104666172b7cae2a583
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Diffstat (limited to 'kernel/sched/hmp.c')
| -rw-r--r-- | kernel/sched/hmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c index d3547391b937..180e2fcf785b 100644 --- a/kernel/sched/hmp.c +++ b/kernel/sched/hmp.c @@ -3340,6 +3340,7 @@ skip_early: busy[i].prev_load = div64_u64(sched_ravg_window, NSEC_PER_USEC); busy[i].new_task_load = 0; + busy[i].predicted_load = 0; goto exit_early; } |
