Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\process.c Create Date:2022-07-28 07:48:49
Last Modify:2020-03-16 17:03:44 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:MONITOR/MWAIT with no hints, used for default C1 state. This invokes MWAIT* with interrupts enabled and no flags, which is backwards compatible with the* original MWAIT implementation.

Proto:static __cpuidle void mwait_idle(void)

Type:void

Parameter:Nothing

805  If Not current_set_polling_and_test() Then
806  trace_cpu_idle_rcuidle(1, smp_processor_id())
809  clflush((void * ) & flags)
813  __monitor((void * ) & flags, 0, 0)
814  If Not need_resched() Then __sti_mwait(0, 0)
816  Else The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
818  trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id())
819  Else
820  The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
822  __current_clr_polling()