[PATCH v4 1/2] x86/platform/uv: Expose the uv_hub_type() interface

From: Dimitri Sivanich

Date: Thu May 21 2026 - 09:57:19 EST


Expose the uv_hub_type() interface for use in non-UV specific code.

Signed-off-by: Dimitri Sivanich <sivanich@xxxxxxx>
---
arch/x86/include/asm/uv/uv_hub.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/arch/x86/include/asm/uv/uv_hub.h b/arch/x86/include/asm/uv/uv_hub.h
index ea877fd83114..5cffc5b9e989 100644
--- a/arch/x86/include/asm/uv/uv_hub.h
+++ b/arch/x86/include/asm/uv/uv_hub.h
@@ -209,10 +209,17 @@ static inline struct uv_hub_info_s *uv_cpu_hub_info(int cpu)
return (struct uv_hub_info_s *)uv_cpu_info_per(cpu)->p_uv_hub_info;
}

+#ifdef CONFIG_X86_UV
static inline int uv_hub_type(void)
{
return uv_hub_info->hub_type;
}
+#else
+static inline int uv_hub_type(void)
+{
+ return 0;
+}
+#endif

static inline __init void uv_hub_type_set(int uvmask)
{
--
2.43.0