summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSuma Hegde <suma.hegde@amd.com>2025-09-16 07:37:36 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-10-15 11:53:03 +0300
commit0bd0f9833196d76666fd2f58524ebfff7ee2628b (patch)
treeeb0242a15abbe4968b0c249eddf939dec3384e37 /include
parent644004565d4cda479995fa9e72c00d62ca084e08 (diff)
downloadlinux-0bd0f9833196d76666fd2f58524ebfff7ee2628b.tar.xz
platform/x86/amd/hsmp: Replace amd_num_nodes() with topology_max_packages()
The amd_num_nodes() function returns the number of data fabrics present. On older EPYC processors, there was one data fabric per socket. However, newer EPYC processors have more than one data fabric per socket, leading to a situation where the number of sockets is not equal to the number of data fabrics. Therefore, it is appropriate to use topology_max_packages() to know the number of sockets in the system. Also remove node.h header inclusion and socket number comparison against data fabric nodes. plat.c is supported only for legacy platforms where socket number and data fabric numbers are same. So it can remain unchanged. Signed-off-by: Suma Hegde <suma.hegde@amd.com> Link: https://patch.msgid.link/20250916043736.3279947-1-suma.hegde@amd.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions