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

Name:To workaround broken NUMA config. Read the comment in* srat_detect_node().

Proto:static int nearby_node(int apicid)

Type:int

Parameter:

TypeParameterName
intapicid
39  When i >= 0 cycle
40  node = __apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[i]
41  If node != NUMA_NO_NODE && node_online(node) Then Return node
44  When i < MAX_LOCAL_APIC cycle
45  node = __apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[i]
46  If node != NUMA_NO_NODE && node_online(node) Then Return node
49  Return FIXME: better would be to fix all architectures to never return> MAX_NUMNODES, then the silly min_ts could be dropped. (node_online_map)
Caller
NameDescribe
srat_detect_node