函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\idle.h Create Date:2022-07-27 06:42:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:current_set_polling_and_test

函数原型:static inline bool __must_check current_set_polling_and_test(void)

返回类型:bool

参数:

29  Idle thread specific functions to determine the need_resched* polling state.
35  smp_mb__after_atomic()
37  返回:此条件成立可能性小(为编译器优化)(tif_need_resched())
调用者
名称描述
mwait_idleMONITOR/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.
mwait_idle_with_hintsThis 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