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:36
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
131  cpu = smp_processor_id()
133  apicid = apicid
135  node = numa_cpu_node(cpu)
136  If node == NUMA_NO_NODE Then node = per_cpu(Last level cache ID of each logical CPU , cpu)
144  If fixup_cpu_id Then fixup_cpu_id(c, node)
147  If Not node_online(node) Then
166  ht_nodeid = initial_apicid
168  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]
171  If Not node_online(node) Then node = To workaround broken NUMA config. Read the comment in* srat_detect_node().
174  numa_set_node(cpu, node)
Caller
NameDescribe
init_hygon