函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cpufreq_schedutil.c Create Date:2022-07-27 10:45:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sugov_update_single

函数原型:static void sugov_update_single(struct update_util_data *hook, u64 time, unsigned int flags)

返回类型:void

参数:

类型参数名称
struct update_util_data *hook
u64time
unsigned intflags
453  sg_cpu等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(hook, structsugov_cpu, update_util)
454  sg_policy等于sg_policy
459  sugov_iowait_boost() - Updates the IO boost status of a CPU
460  last_update等于time
462  Make sugov_should_update_freq() ignore the rate limit when DL* has increased the utilization.
464  如果非Governor internals **********************则返回
468  busy等于非need_freq_updatesugov_cpu_is_busy(sg_cpu)
470  util等于sugov_get_util(sg_cpu)
471  max等于max
472  util等于sugov_iowait_apply() - Apply the IO boost to a CPU
473  next_f等于get_next_freq - Compute a new frequency for a given cpufreq policy
478  如果busynext_f小于next_freq
479  next_f等于next_freq
482  cached_raw_freq等于0
490  如果fast_switch_enabled
491  sugov_fast_switch(sg_policy, time, next_f)
492  否则
493  raw_spin_lock( & For shared policies )
494  sugov_deferred_update(sg_policy, time, next_f)
495  raw_spin_unlock( & For shared policies )