mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
schedutil: Use map_util_freq()
Change-Id: If9cf1b47dee3b9bd0663c88034da8edc98bd28f6 Signed-off-by: Samuel Pascua <pascua.samuel.14@gmail.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
a48f50b6bf
commit
d9f0298279
@ -291,7 +291,7 @@ static unsigned int get_next_freq(struct sugov_policy *sg_policy,
|
||||
*/
|
||||
freq = policy->cur + (policy->cur >> 2);
|
||||
|
||||
freq = (freq + (freq >> 2)) * util / max;
|
||||
freq = map_util_freq(util, freq, max);
|
||||
|
||||
if (freq == sg_policy->cached_raw_freq && !sg_policy->need_freq_update)
|
||||
return sg_policy->next_freq;
|
||||
|
Loading…
x
Reference in New Issue
Block a user