[PATCH v4 3/5] x86/cpu/hygon: Remove Spectral Chicken for Hygon processors

From: Fu Hao

Date: Fri Jul 10 2026 - 02:53:59 EST


It's no need to set the Spectral chicken bit for all Hygon processors.

Fixes: d7caac991fee ("x86/cpu/amd: Add Spectral Chicken")
Signed-off-by: Fu Hao <fuhao@xxxxxxxxxxxxxx>
---
arch/x86/kernel/cpu/hygon.c | 6 ------
1 file changed, 6 deletions(-)

diff --git a/arch/x86/kernel/cpu/hygon.c b/arch/x86/kernel/cpu/hygon.c
index a0657c5ad..24162311b 100644
--- a/arch/x86/kernel/cpu/hygon.c
+++ b/arch/x86/kernel/cpu/hygon.c
@@ -177,12 +177,6 @@ static void init_hygon(struct cpuinfo_x86 *c)

set_cpu_cap(c, X86_FEATURE_REP_GOOD);

- /*
- * XXX someone from Hygon needs to confirm this DTRT
- *
- init_spectral_chicken(c);
- */
-
set_cpu_cap(c, X86_FEATURE_ZEN);
set_cpu_cap(c, X86_FEATURE_CPB);

--
2.34.1