函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\mce\therm_throt.c |
Create Date:2022-07-27 09:04:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:herm_throt_process - Process thermal throttling event from interrupt*@curr: Whether the condition is current or not (boolean), since the* thermal interrupt normally gets called both when the thermal* event begins and once the event has ended
函数原型:static void therm_throt_process(bool new_event, int event, int level)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
bool | new_event | |
int | event | |
int | level |
318 | pstate等于per_cpu(thermal_state, this_cpu) |
320 | now等于get_jiffies_64() |
321 | 如果level恒等于CORE_LEVEL则 |
322 | 如果event恒等于THERMAL_THROTTLING_EVENT则state等于core_throttle |
324 | 否则如果event恒等于POWER_LIMIT_EVENT则state等于core_power_limit |
326 | 否则返回 |
328 | 否则如果level恒等于PACKAGE_LEVEL则 |
331 | 否则如果event恒等于POWER_LIMIT_EVENT则state等于package_power_limit |
333 | 否则返回 |
335 | 否则返回 |
344 | 如果event不等于THERMAL_THROTTLING_EVENT则返回 |
347 | 如果new_event且非last_interrupt_time则 |
351 | get_therm_status(level, & hot, & temp) |
357 | 如果temp大于10则返回 |
360 | baseline_temp等于temp |
361 | last_interrupt_time等于now |
363 | 否则如果old_event且last_interrupt_time则 |
369 | total_time_ms加等于throttle_time |
370 | last_interrupt_time等于0 |
名称 | 描述 |
---|---|
intel_thermal_interrupt | Thermal transition interrupt handler |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |