Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\hygon.c Create Date:2022-07-28 07:58:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:On Hygon setup the lower bits of the APIC id distinguish the cores.* Assumes number of cores is a power of two.

Proto:static void hygon_detect_cmp(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
117  cpu = smp_processor_id()
119  bits = CPUID returned core id bits:
121  Core id: = initial_apicid & (1 << bits) - 1
123  Physical processor id: = initial_apicid >> bits
125  per_cpu(Last level cache ID of each logical CPU , cpu) = Physical processor id:
Caller
NameDescribe
init_hygon