Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct sugov_policy * | sg_policy | |
unsigned long | util | |
unsigned long | max |
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) |
Name | Describe |
---|---|
sugov_update_single | |
sugov_next_freq_shared |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |