函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\therm_throt.c Create Date:2022-07-27 09:04:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:thresh_event_valid

函数原型:static int thresh_event_valid(int level, int event)

返回类型:int

参数:

类型参数名称
intlevel
intevent
377  this_cpu等于当前cpu ID()
378  pstate等于per_cpu(thermal_state, this_cpu)
379  now等于get_jiffies_64()
381  如果level恒等于PACKAGE_LEVELstate等于如果event恒等于0则pkg_thresh0否则pkg_thresh1
384  否则state等于如果event恒等于0则core_thresh0否则core_thresh1
388  如果time_before64(now, next_check)则返回:0
391  next_check等于nowHow long to wait between reporting thermal events
393  返回:1
调用者
名称描述
notify_package_thresholds
notify_thresholds