函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function computes an effective utilization for the given CPU, to be* used for frequency selection given the linear relation: f = u * f_max

函数原型:unsigned long schedutil_cpu_util(int cpu, unsigned long util_cfs, unsigned long max, enum schedutil_type type, struct task_struct *p)

返回类型:unsigned long

参数:

类型参数名称
intcpu
unsigned longutil_cfs
unsigned longmax
enum schedutil_typetype
struct task_struct *p
211  rq等于cpu_rq(cpu)
213  如果非IS_BUILTIN(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y', 0* otherwise. For boolean options, this is equivalent to* IS_ENABLED(CONFIG_FOO).(CONFIG_UCLAMP_TASK)且type恒等于FREQUENCY_UTILrt_rq_is_runnable( & rt)则
215  返回:max
223  irq等于cpu_util_irq(rq)
224  如果此条件成立可能性小(为编译器优化)(irq >= max)则返回:max
239  util等于util_cfscpu_util_rt(rq)
240  如果type恒等于FREQUENCY_UTILutil等于uclamp_util_with(rq, util, p)
243  dl_util等于cpu_util_dl(rq)
254  如果utildl_util大于等于max则返回:max
261  如果type恒等于ENERGY_UTILutil加等于dl_util
273  util等于scale_irq_capacity(util, irq, max)
274  util加等于irq
286  如果type恒等于FREQUENCY_UTILutil加等于cpu_bw_dl(rq)
289  返回:两数取小(max, util)
调用者
名称描述
sugov_get_util