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

Commit beb40add authored by Junjie Wu's avatar Junjie Wu Committed by Stephen Boyd
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>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 3381c4c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -503,7 +503,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;