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

Commit 17a15f82 authored by Joonwoo Park's avatar Joonwoo Park Committed by Saravana Kannan
Browse files

sched: WALT: introduce a struct with load information for schedutil



Introduce a struct that can extend load information from WALT for
schedutil.

Change-Id: Ibca29fa5fb2e2da53972984c12c05759ac7287ab
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 56c0a94b
Loading
Loading
Loading
Loading
+19 −0
Original line number Original line Diff line number Diff line
@@ -1754,6 +1754,25 @@ static inline unsigned long cpu_util(int cpu)
	return __cpu_util(cpu, 0);
	return __cpu_util(cpu, 0);
}
}


struct sched_walt_cpu_load {
	unsigned long prev_window_util;
	unsigned long nl;
	unsigned long pl;
};

static inline unsigned long
cpu_util_freq(int cpu, struct sched_walt_cpu_load *walt_load)
{
	unsigned long util = cpu_util(cpu);

#ifdef CONFIG_SCHED_WALT
	if (walt_load)
		walt_load->prev_window_util = util;
#endif

	return util;
}

#endif
#endif


#ifdef CONFIG_CPU_FREQ_GOV_SCHED
#ifdef CONFIG_CPU_FREQ_GOV_SCHED