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

Commit 106a89ee authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

sched: walt: Improve the scheduler



This change is for general scheduler improvements.

Change-Id: I49218b594f77ab416c317e952865d889fd9a2058
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent bff77808
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -92,7 +92,6 @@ extern unsigned int sched_capacity_margin_up[NR_CPUS];
extern unsigned int sched_capacity_margin_down[NR_CPUS];
extern unsigned int sched_capacity_margin_down[NR_CPUS];


struct sched_walt_cpu_load {
struct sched_walt_cpu_load {
	unsigned long prev_window_util;
	unsigned long nl;
	unsigned long nl;
	unsigned long pl;
	unsigned long pl;
	bool rtgb_active;
	bool rtgb_active;
+0 −2
Original line number Original line Diff line number Diff line
@@ -575,7 +575,6 @@ __cpu_util_freq_walt(int cpu, struct sched_walt_cpu_load *walt_load)


		nl = div64_u64(nl * (100 + boost), walt_cpu_util_freq_divisor);
		nl = div64_u64(nl * (100 + boost), walt_cpu_util_freq_divisor);


		walt_load->prev_window_util = util;
		walt_load->nl = nl;
		walt_load->nl = nl;
		walt_load->pl = pl;
		walt_load->pl = pl;
		walt_load->ws = walt_load_reported_window;
		walt_load->ws = walt_load_reported_window;
@@ -610,7 +609,6 @@ cpu_util_freq_walt(int cpu, struct sched_walt_cpu_load *walt_load)
		mpct = 100;
		mpct = 100;


	util = ADJUSTED_ASYM_CAP_CPU_UTIL(util, util_other, mpct);
	util = ADJUSTED_ASYM_CAP_CPU_UTIL(util, util_other, mpct);
	walt_load->prev_window_util = util;


	walt_load->nl = ADJUSTED_ASYM_CAP_CPU_UTIL(walt_load->nl, wl_other.nl,
	walt_load->nl = ADJUSTED_ASYM_CAP_CPU_UTIL(walt_load->nl, wl_other.nl,
						   mpct);
						   mpct);