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

Commit bba81238 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Satya Durga Srinivasu Prabhala
Browse files

sched: walt: Fix the bug in initializing the new task demand



sysctl_sched_init_task_load_pct and sched_init_task_load_windows
are out of sync. Due to this the new task demand is not initialized
correctly. It is currently set to 0 due to which several new tasks
gets packed on the same CPU. This results in suboptimal performance
until load balancer sort it out.

Change-Id: Ibcc81ed7f3b532942fde8bf3bd148891d61a86bc
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent 17e77f21
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -3118,4 +3118,8 @@ void walt_sched_init(struct rq *rq)


	walt_cpu_util_freq_divisor =
	walt_cpu_util_freq_divisor =
	    (sched_ravg_window >> SCHED_CAPACITY_SHIFT) * 100;
	    (sched_ravg_window >> SCHED_CAPACITY_SHIFT) * 100;

	sched_init_task_load_windows =
		div64_u64((u64)sysctl_sched_init_task_load_pct *
			  (u64)sched_ravg_window, 100);
}
}