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

Commit 76faa288 authored by Junjie Wu's avatar Junjie Wu
Browse files

cpufreq: interactive: Fix load in cpufreq_interactive_cpuload event



CPU load is now normalized to per-policy target_load, instead of
current frequency of CPU. Fix cpufreq_interactive_cpuload accordingly
so that its load number matches other cpufreq interactive events like
cpufreq_interactive_target/notyet/already.

Change-Id: I0685b5930ad1bac01819e96fcdfc181167d4dae0
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 3ce8d9c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -480,7 +480,7 @@ static void __cpufreq_interactive_timer(unsigned long data, bool is_notif)
		tmploadadjfreq = (unsigned int)cputime_speedadj * 100;
		pcpu->loadadjfreq = tmploadadjfreq;
		trace_cpufreq_interactive_cpuload(i, tmploadadjfreq /
						  ppol->policy->cur);
						  ppol->target_freq);

		if (tmploadadjfreq > loadadjfreq) {
			loadadjfreq = tmploadadjfreq;