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:umwait_update_control

Proto:static inline void umwait_update_control(unsigned int maxtime, bool c02_enable)

Type:void

Parameter:

TypeParameterName
unsigned intmaxtime
boolc02_enable
121  ctrl = maxtime & The time field is bit[31:2], but representing a 32bit value with* bit[1:0] zero.
123  If Not c02_enable Then ctrl |= MSR_IA32_UMWAIT_CONTROL_C02_DISABLE
126  WRITE_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, ctrl)
128  Call a function on all processors
Caller
NameDescribe
enable_c02_store
max_time_store