函数逻辑报告 |
Source Code:kernel\power\energy_model.c |
Create Date:2022-07-27 11:04:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int em_register_perf_domain(cpumask_t *span, unsigned int nr_states, struct em_data_callback *cb)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
cpumask_t * | span | |
unsigned int | nr_states | |
struct em_data_callback * | cb |
202 | prev_cap等于0 |
204 | ret等于0 |
213 | mutex_lock( & Mutex serializing the registrations of performance domains and letting* callbacks defined by drivers sleep.) |
226 | cap等于arch_scale_cpu_capacity(cpu) |
228 | 打印错误信息("CPUs of %*pbl must have the same capacity\n", cpumask_pr_args - printf args to output a cpumask*@maskp: cpumask to be printed* Can be used to provide arguments for '%*pb[l]' when printing a cpumask.(span)) |
231 | 转到:unlock |
237 | pd等于em_create_pd(span, nr_states, cb) |
238 | 如果非pd则 |
240 | 转到:unlock |
253 | unlock : |
256 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |