Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 432662eb authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

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: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent e4e95be2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}