Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void amd_detect_cmp(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
393  cpu = smp_processor_id()
395  bits = CPUID returned core id bits:
397  Core id: = initial_apicid & (1 << bits) - 1
399  Physical processor id: = initial_apicid >> bits
401  per_cpu(Last level cache ID of each logical CPU , cpu) = Physical processor id:
Caller
NameDescribe
init_amd