[PATCH v6 87/90] x86/cpu: centaur/zhaoxin: Remove x86_capability[] initialization

Ahmed S. Darwish posted 90 patches 6 days, 16 hours ago
[PATCH v6 87/90] x86/cpu: centaur/zhaoxin: Remove x86_capability[] initialization
Posted by Ahmed S. Darwish 6 days, 16 hours ago
X86_FEATURE queries are now routed to the CPUID tables instead of to
x86_capability[].

Remove all direct CPUID queries which populate x86_capability[].

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
---
 arch/x86/kernel/cpu/centaur.c | 1 -
 arch/x86/kernel/cpu/zhaoxin.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/centaur.c b/arch/x86/kernel/cpu/centaur.c
index 29688aec2231..8f614003d82c 100644
--- a/arch/x86/kernel/cpu/centaur.c
+++ b/arch/x86/kernel/cpu/centaur.c
@@ -42,7 +42,6 @@ static void init_c3(struct cpuinfo_x86 *c)
 		 * EDX feature bits.  Refresh the leaf.
 		 */
 		cpuid_refresh_leaf(c, 0xc0000001);
-		c->x86_capability[CPUID_C000_0001_EDX] = cpuid_edx(0xC0000001);
 	}
 #ifdef CONFIG_X86_32
 	/* Cyrix III family needs CX8 & PGE explicitly enabled. */
diff --git a/arch/x86/kernel/cpu/zhaoxin.c b/arch/x86/kernel/cpu/zhaoxin.c
index 5918f9387c87..7f576f0296b7 100644
--- a/arch/x86/kernel/cpu/zhaoxin.c
+++ b/arch/x86/kernel/cpu/zhaoxin.c
@@ -41,7 +41,6 @@ static void init_zhaoxin_cap(struct cpuinfo_x86 *c)
 		 * EDX feature bits.  Refresh the leaf.
 		 */
 		cpuid_refresh_leaf(c, 0xc0000001);
-		c->x86_capability[CPUID_C000_0001_EDX] = cpuid_edx(0xC0000001);
 	}
 
 	if (c->x86 >= 0x6)
-- 
2.53.0