[PATCH v1 1/4] x86/cpuid: Remove duplicate XMM3 dependency entry

From: Guixiong Wei

Date: Tue Aug 11 2026 - 21:56:00 EST


The cpuid_deps[] table lists the dependency

{ X86_FEATURE_XMM3, X86_FEATURE_XMM2 }

twice. The second entry is redundant: do_clear_cpu_cap() walks the
table and uses __test_and_set_bit() to track which features have
already been added to the disable bitmap, so the duplicate is silently
skipped and has no functional effect.

Remove the redundant entry to clean up the table.

Fixes: 0b00de857a64 ("x86/cpuid: Add generic table for CPUID dependencies")
Signed-off-by: Guixiong Wei <weiguixiong@xxxxxxxxxxxxx>
---
arch/x86/kernel/cpu/cpuid-deps.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-deps.c
index 99801e844b30..e78d28a43ec7 100644
--- a/arch/x86/kernel/cpu/cpuid-deps.c
+++ b/arch/x86/kernel/cpu/cpuid-deps.c
@@ -39,7 +39,6 @@ static const struct cpuid_dep cpuid_deps[] = {
{ X86_FEATURE_XMM3, X86_FEATURE_XMM2 },
{ X86_FEATURE_XMM4_1, X86_FEATURE_XMM2 },
{ X86_FEATURE_XMM4_2, X86_FEATURE_XMM2 },
- { X86_FEATURE_XMM3, X86_FEATURE_XMM2 },
{ X86_FEATURE_PCLMULQDQ, X86_FEATURE_XMM2 },
{ X86_FEATURE_SSSE3, X86_FEATURE_XMM2, },
{ X86_FEATURE_F16C, X86_FEATURE_XMM2, },
--
2.50.1 (Apple Git-155)