Add Hygon SoC support to enable tsc_reliable feature
authorhygonsoc <hygonsoc@gmail.com>
Mon, 28 Jan 2019 16:11:04 +0000 (00:11 +0800)
committerhygonsoc <hygonsoc@gmail.com>
Mon, 28 Jan 2019 16:11:04 +0000 (00:11 +0800)
arch/arch-x86-common.h

index 5140f23..f32835c 100644 (file)
@@ -70,7 +70,7 @@ static inline void arch_init(char *envp[])
        str[12] = '\0';
        if (!strcmp(str, "GenuineIntel"))
                arch_init_intel();
-       else if (!strcmp(str, "AuthenticAMD"))
+       else if (!strcmp(str, "AuthenticAMD") || !strcmp(str, "HygonGenuine"))
                arch_init_amd();
 }