Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\mwait.h Create Date:2022-07-28 07:24:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:MWAITX allows for a timer expiration to get the core out a wait state in* addition to the default MWAIT exit condition of a store appearing at a* monitored virtual address.* Registers:* MWAITX ECX[1]: enable timer if set

Proto:static inline void __mwaitx(unsigned long eax, unsigned long ebx, unsigned long ecx)

Type:void

Parameter:

TypeParameterName
unsigned longeax
unsigned longebx
unsigned longecx
83  asm volatile
Caller
NameDescribe
delay_mwaitxOn some AMD platforms, MWAITX has a configurable 32-bit timer, that* counts with TSC frequency. The input value is the loop of the* counter, it will exit when the timer expires.