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:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cmci_toggle_interrupt_mode

Proto:static void cmci_toggle_interrupt_mode(bool on)

Type:void

Parameter:

TypeParameterName
boolon
160  raw_spin_lock_irqsave( & cmci_discover_lock protects against parallel discovery attempts* which could race against each other., flags)
161  owned = this_cpu_ptr(CMCI can be delivered to multiple cpus that share a machine check bank* so we need to designate a single cpu to process errors logged in each bank* in the interrupt handler (otherwise we would have many races and potential)
163  rdmsrl(MSR_IA32_MCx_CTL2(bank), val)
165  If on Then val |= CTL2 register defines
167  Else val &= ~CTL2 register defines
170  wrmsrl(MSR_IA32_MCx_CTL2(bank), val)
172  raw_spin_unlock_irqrestore( & cmci_discover_lock protects against parallel discovery attempts* which could race against each other., flags)
Caller
NameDescribe
mce_adjust_timer_default
cmci_storm_detect