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

Commit 541919e7 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched/walt: Improve the scheduler



This change is for general scheduler improvement.

Change-Id: Ie088ab984866ee934d535e1f2caec07ed9628484
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent a1f75dc3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -482,6 +482,7 @@ u64 freq_policy_load(struct rq *rq)
	struct sched_cluster *cluster = rq->cluster;
	u64 aggr_grp_load = cluster->aggr_grp_load;
	u64 load, tt_load = 0;
	struct task_struct *cpu_ksoftirqd = per_cpu(ksoftirqd, cpu_of(rq));

	if (rq->ed_task != NULL) {
		load = sched_ravg_window;
@@ -493,6 +494,9 @@ u64 freq_policy_load(struct rq *rq)
	else
		load = rq->prev_runnable_sum + rq->grp_time.prev_runnable_sum;

	if (cpu_ksoftirqd && cpu_ksoftirqd->state == TASK_RUNNING)
		load = max_t(u64, load, task_load(cpu_ksoftirqd));

	tt_load = top_task_load(rq);
	switch (reporting_policy) {
	case FREQ_REPORT_MAX_CPU_LOAD_TOP_TASK: