函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\process.c Create Date:2022-07-27 08:48:50
Last Modify:2020-03-16 17:03:44 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static __cpuidle void mwait_idle(void)

返回类型:void

参数:

805  如果非current_set_polling_and_test()则
806  trace_cpu_idle_rcuidle(1, 当前cpu ID())
809  clflush((void * ) & flags)
813  __monitor((void * ) & flags, 0, 0)
814  如果非need_resched()则__sti_mwait(0, 0)
816  否则开中断()
818  trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, 当前cpu ID())
819  否则
820  开中断()
822  __current_clr_polling()