Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cmci_storm_detect

Proto:static bool cmci_storm_detect(void)

Type:bool

Parameter:Nothing

217  cnt = Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(cmci_storm_cnt)
218  ts = Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(cmci_time_stamp)
219  now = jiffies
222  If Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(cmci_storm_state) != CMCI_STORM_NONE Then Return true
225  If time_before_eq(now, ts + CMCI_STORM_INTERVAL) Then
226  cnt++
227  Else
228  cnt = 1
229  __this_cpu_write(cmci_time_stamp, now)
231  __this_cpu_write(cmci_storm_cnt, cnt)
233  If cnt <= CMCI_STORM_THRESHOLD Then Return false
236  cmci_toggle_interrupt_mode(false)
237  __this_cpu_write(cmci_storm_state, CMCI_STORM_ACTIVE)
238  r = atomic_add_return(1, & cmci_storm_on_cpus)
239  Ensure that the timer is firing in @interval from now.
240  this_cpu_write(CMCI storm detection backoff counter* During storm, we reset this counter to INITIAL_CHECK_INTERVAL in case we've* encountered an error. If not, we decrement it by one. We signal the end of* the CMCI storm when it reaches 0., 5 minutes )
242  If r == 1 Then pr_notice("CMCI storm detected: switching to poll mode\n")
244  Return true
Caller
NameDescribe
intel_threshold_interruptThe interrupt handler. This is called on every event.* Just call the poller directly to log any events.* This could in theory increase the threshold under high load,* but doesn't for now.