函数逻辑报告 |
Source Code:kernel\power\energy_model.c |
Create Date:2022-07-27 11:04:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:em_create_pd
函数原型:static struct em_perf_domain *em_create_pd(cpumask_t *span, int nr_states, struct em_data_callback *cb)
返回类型:struct em_perf_domain
参数:
类型 | 参数 | 名称 |
---|---|---|
cpumask_t * | span | |
int | nr_states | |
struct em_data_callback * | cb |
85 | prev_freq等于0 |
91 | 如果非active_power则返回:NULL |
95 | 如果非pd则返回:NULL |
109 | ret等于active_power( & power, & freq, cpu) |
110 | 如果ret则 |
112 | 转到:free_cs_table |
121 | 转到:free_cs_table |
128 | 如果非power或power大于EM_CPU_MAX_POWER则 |
130 | 转到:free_cs_table |
143 | 如果opp_eff大于等于prev_opp_eff则打印警告信息("pd%d: hertz/watts ratio non-monotonically decreasing: em_cap_state %d >= em_cap_state%d\n", cpu, i, i - 1) |
146 | prev_opp_eff等于opp_eff |
157 | nr_cap_states等于nr_states |
160 | em_debug_create_pd(pd, cpu) |
162 | 返回:pd |
164 | free_cs_table : |
165 | 释放内存 |
166 | free_pd : |
167 | 释放内存 |
169 | 返回:NULL |
名称 | 描述 |
---|---|
em_register_perf_domain | m_register_perf_domain() - Register the Energy Model of a performance domain*@span : Mask of CPUs in the performance domain*@nr_states : Number of capacity states to register*@cb : Callback functions providing the data of the Energy Model* Create Energy |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |