From c348db31ccce60f2808dd84c1f43f36a1556141a Mon Sep 17 00:00:00 2001 From: Runa Guo-oc Date: Thu, 22 May 2025 18:40:32 +0800 Subject: [PATCH] Add Zhaoxin support to enable tsc_reliable and arch_random features Signed-off-by: Runa Guo-oc Link: https://lore.kernel.org/r/20250522104032.17519-1-RunaGuo-oc@zhaoxin.com Signed-off-by: Jens Axboe --- arch/arch-x86-common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h index f32835cc..ac26126a 100644 --- a/arch/arch-x86-common.h +++ b/arch/arch-x86-common.h @@ -68,7 +68,8 @@ static inline void arch_init(char *envp[]) (unsigned int *) &str[4]); str[12] = '\0'; - if (!strcmp(str, "GenuineIntel")) + if (!strcmp(str, "GenuineIntel") || !strcmp(str, " Shanghai ") || + !strcmp(str, "CentaurHauls")) arch_init_intel(); else if (!strcmp(str, "AuthenticAMD") || !strcmp(str, "HygonGenuine")) arch_init_amd(); -- 2.25.1