Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-28 07:55:02
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:detect_num_cpu_cores

Proto:void detect_num_cpu_cores(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
659  cpuid returned max cores value: = 1
660  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SMP) || Maximum supported CPUID level, -1=no CPUID: < 4 Then Return
663  cpuid_count(4, 0, & eax, & ebx, & ecx, & edx)
664  If eax & 0x1f Then cpuid returned max cores value: = (eax >> 26) + 1
Caller
NameDescribe
init_intel
init_centaur
init_zhaoxin