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:select_idle_routine

Proto:void select_idle_routine(const struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
const struct cpuinfo_x86 *c
831  If x86_idle || Idle related variables and functions == IDLE_POLL Then Return
834  If boot_cpu_has_bug(CPU is among the affected by Erratum 400 ) Then
835  pr_info("using AMD E400 aware idle routine\n")
836  x86_idle = AMD Erratum 400 aware idle routine. We handle it the same way as C3 power* states (local apic timer and TSC stop).
837  Else if 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. Then
838  pr_info("using mwait in idle threads\n")
839  x86_idle = 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.
840  Else x86_idle = We use this if we don't have any better idle routine..
Caller
NameDescribe
identify_cpuThis does the hard work of actually picking apart the CPU stuff...