函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cmci_toggle_interrupt_mode

函数原型:static void cmci_toggle_interrupt_mode(bool on)

返回类型:void

参数:

类型参数名称
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  如果onval或等于CTL2 register defines
167  否则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)
调用者
名称描述
mce_adjust_timer_default
cmci_storm_detect