Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\therm_throt.c Create Date:2022-07-28 08:04:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:thresh_event_valid

Proto:static int thresh_event_valid(int level, int event)

Type:int

Parameter:

TypeParameterName
intlevel
intevent
377  this_cpu = smp_processor_id()
378  pstate = per_cpu(thermal_state, this_cpu)
379  now = get_jiffies_64()
381  If level == PACKAGE_LEVEL Then state = If event == 0 Then pkg_thresh0 Else pkg_thresh1
384  Else state = If event == 0 Then core_thresh0 Else core_thresh1
388  If time_before64(now, next_check) Then Return 0
391  next_check = now + How long to wait between reporting thermal events
393  Return 1
Caller
NameDescribe
notify_package_thresholds
notify_thresholds