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:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:srat_detect_node

Proto:static void srat_detect_node(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
419  cpu = smp_processor_id()
421  apicid = apicid
423  node = numa_cpu_node(cpu)
424  If node == NUMA_NO_NODE Then node = per_cpu(Last level cache ID of each logical CPU , cpu)
432  If fixup_cpu_id Then fixup_cpu_id(c, node)
435  If Not node_online(node) Then
455  ht_nodeid = initial_apicid
457  If __apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[ht_nodeid] != NUMA_NO_NODE Then node = __apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[ht_nodeid]
460  If Not node_online(node) Then node = To workaround broken NUMA config. Read the comment in* srat_detect_node().
463  numa_set_node(cpu, node)
Caller
NameDescribe
init_amd