函数逻辑报告

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

函数名称:select_idle_routine

函数原型:void select_idle_routine(const struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
const struct cpuinfo_x86 *c
831  如果x86_idleIdle related variables and functions恒等于IDLE_POLL则返回
834  如果boot_cpu_has_bug(CPU is among the affected by Erratum 400 )则
835  打印信息("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  否则如果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.
838  打印信息("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  否则x86_idle等于We use this if we don't have any better idle routine..
调用者
名称描述
identify_cpuThis does the hard work of actually picking apart the CPU stuff...