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

Name:This uses new MONITOR/MWAIT instructions on P4 processors with PNI,* which can obviate IPI to trigger checking of need_resched.* We execute MONITOR against need_resched and enter optimized wait state* through MWAIT

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

Type:void

Parameter:

TypeParameterName
unsigned longeax
unsigned longecx
109  If static_cpu_has_bug(IPI required to wake up remote CPU ) || Not current_set_polling_and_test() Then
112  clflush((void * ) & flags)
116  __monitor((void * ) & flags, 0, 0)
117  If Not need_resched() Then __mwait(eax, ecx)
120  current_clr_polling()
Caller
NameDescribe
acpi_processor_ffh_cstate_enter