From: Thomas Gleixner Date: Tue, 5 Jun 2018 22:47:10 +0000 (+0200) Subject: x86/cpu/AMD: Remove the pointless detect_ht() call X-Git-Tag: v4.1.12-124.31.3~656 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d74fd020ce8dc72d27b89de51febc34fcfda9120;p=users%2Fjedix%2Flinux-maple.git x86/cpu/AMD: Remove the pointless detect_ht() call Real 32bit AMD CPUs do not have SMT and the only value of the call was to reach the magic printout which got removed. Signed-off-by: Thomas Gleixner Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Ingo Molnar Orabug: 28220674 CVE: CVE-2018-3620 (cherry picked from commit 44ca36de56d1bf196dca2eb67cd753a46961ffe6) Signed-off-by: Mihai Carabas Reviewed-by: Darren Kenny Reviewed-by: Boris Ostrovsky --- diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 1890a4b4bb26..ff68fddb290f 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -723,10 +723,6 @@ static void init_amd(struct cpuinfo_x86 *c) srat_detect_node(c); } -#ifdef CONFIG_X86_32 - detect_ht(c); -#endif - init_amd_cacheinfo(c); if (c->x86 >= 0xf)