Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:enable_c02_show

Proto:static ssize_t enable_c02_show(struct device *dev, struct device_attribute *attr, char *buf)

Type:ssize_t

Parameter:

TypeParameterName
struct device *dev
struct device_attribute *attr
char *buf
134  ctrl = READ_ONCE(Cache IA32_UMWAIT_CONTROL MSR. This is a systemwide control. By default,* umwait max time is 100000 in TSC-quanta and C0.2 is enabled)
136  Return sprintf(buf, "%d\n", When bit 0 in IA32_UMWAIT_CONTROL MSR is 1, C0.2 is disabled.* Otherwise, C0.2 is enabled.)