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:11
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
293  When i >= 0 cycle
294  node = __apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[i]
295  If node != NUMA_NO_NODE && node_online(node) Then Return node
298  When i < MAX_LOCAL_APIC cycle
299  node = __apicid_to_node[] stores the raw mapping between physical apicid and* node and is used to initialize cpu_to_node mapping[i]
300  If node != NUMA_NO_NODE && node_online(node) Then Return node
303  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