-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Abhijeet Dharmapurikar <adharmap@codeaurora.org> [render: minor fixups] Signed-off-by: Zachariah Kennedy <zkennedy87@gmail.com> Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: mcdofrenchfreis <xyzevan@androidist.net>
- Loading branch information
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters