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

Skip to content
Commit 86916de3 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

sched/cpufreq_schedutil: create a function for common steps



There are many callsites that do exactly same steps as

hs_util = freq_to_util(sg_policy,
		sg_policy->tunables->hispeed_freq);
hs_util = mult_frac(hs_util, TARGET_LOAD, 100);

Capture them in a function and change all callsites to use it.

Change-Id: Ie7138de7942c51027309101eb6429208a711da74
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent c5d09a49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment