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:48
Last Modify:2020-03-16 17:03:44 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Intel Core2 and older machines prefer MWAIT over HALT for C1.* We can't rely on cpuidle installing MWAIT, because it will not load* on systems that support only C1 -- so the boot default must be MWAIT.

Proto:static int prefer_mwait_c1_over_halt(const struct cpuinfo_x86 *c)

Type:int

Parameter:

TypeParameterName
const struct cpuinfo_x86 *c
789  If CPU vendor != X86_VENDOR_INTEL Then Return 0
792  If Not cpu_has(c, "monitor" MONITOR/MWAIT support ) || boot_cpu_has_bug(IPI required to wake up remote CPU ) Then Return 0
795  Return 1
Caller
NameDescribe
select_idle_routine