Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpufreq_schedutil.c Create Date:2022-07-28 09:44:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_next_freq - Compute a new frequency for a given cpufreq policy

Proto:static unsigned int get_next_freq(struct sugov_policy *sg_policy, unsigned long util, unsigned long max)

Type:unsigned int

Parameter:

TypeParameterName
struct sugov_policy *sg_policy
unsigned longutil
unsigned longmax
172  policy = policy
173  freq = If arch_scale_freq_invariant() Then max_freq Else in kHz, only needed if cpufreq * governors are used
176  freq = map_util_freq(util, freq, max)
178  If freq == cached_raw_freq && Not need_freq_update Then Return next_freq
181  need_freq_update = false
182  cached_raw_freq = freq
183  Return cpufreq_driver_resolve_freq(policy, freq)
Caller
NameDescribe
sugov_update_single
sugov_next_freq_shared