[PATCH v5 3/5] x86/cpu/hygon: Remove Spectral Chicken for Hygon processors
From: Fu Hao
Date: Thu Sep 03 2026 - 23:17:18 EST
It's no need to set the Spectral chicken bit for all Hygon processors.
Commit d7caac991fee ("x86/cpu/amd: Add Spectral Chicken") added the
spectral chicken bit for AMD platforms. There was an inquiry about
whether Hygon platforms also require this chicken bit. Hygon has
confirmed that it is not needed. Therefore, the related comment is
removed in this patch.
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 64f9a64c3..eea9e36a8 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