函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
参数:
类型 | 参数 | 名称 |
---|---|---|
int | cpu | |
unsigned long | util_cfs | |
unsigned long | max | |
enum schedutil_type | type | |
struct task_struct * | p |
215 | 返回:max |
223 | irq等于cpu_util_irq(rq) |
224 | 如果此条件成立可能性小(为编译器优化)(irq >= max)则返回:max |
239 | util等于util_cfs加cpu_util_rt(rq) |
240 | 如果type恒等于FREQUENCY_UTIL则util等于uclamp_util_with(rq, util, p) |
243 | dl_util等于cpu_util_dl(rq) |
261 | 如果type恒等于ENERGY_UTIL则util加等于dl_util |
273 | util等于scale_irq_capacity(util, irq, max) |
286 | 如果type恒等于FREQUENCY_UTIL则util加等于cpu_bw_dl(rq) |
名称 | 描述 |
---|---|
sugov_get_util |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |