Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sugov_update_single

Proto:static void sugov_update_single(struct update_util_data *hook, u64 time, unsigned int flags)

Type:void

Parameter:

TypeParameterName
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  If Not Governor internals ********************** Then Return
468  busy = Not need_freq_update && sugov_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  If busy && next_f < next_freq Then
479  next_f = next_freq
482  cached_raw_freq = 0
490  If fast_switch_enabled Then
491  sugov_fast_switch(sg_policy, time, next_f)
492  Else
493  raw_spin_lock( & For shared policies )
494  sugov_deferred_update(sg_policy, time, next_f)
495  raw_spin_unlock( & For shared policies )