x86/platform/uv: Introduce helper function uv_pnode_to_socket.
authorSteve Wahl <steve.wahl@hpe.com>
Fri, 19 May 2023 19:07:46 +0000 (14:07 -0500)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 31 May 2023 16:34:59 +0000 (09:34 -0700)
commit8c646cee0ae3c0a19a7d9fdb847c45c729cae945
treecdd4b0a7876d70fd8a2cc9c4b293a44287993ceb
parentfd27bea340012412a5ad1476b0a40381d7407550
x86/platform/uv: Introduce helper function uv_pnode_to_socket.

Add and use uv_pnode_to_socket() function, which parallels other
helper functions in here, and will enable avoiding duplicate code
in an upcoming patch.

Signed-off-by: Steve Wahl <steve.wahl@hpe.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20230519190752.3297140-3-steve.wahl%40hpe.com
arch/x86/include/asm/uv/uv_hub.h