[PATCH v2 1/2] x86/mce: Add CPU_SUP_* dependencies for Intel/Zhaoxin MCE features

From: Vincent Mailhol

Date: Fri Nov 13 2026 - 19:01:44 EST


Intel-style MCE features are only used on Intel and Zhaoxin CPUs. Gate
X86_MCE_INTEL on CPU_SUP_INTEL || CPU_SUP_ZHAOXIN.

Update the prompt and help text to mention both supported CPU vendors.

Signed-off-by: Vincent Mailhol <mailhol@xxxxxxxxxx>
---
arch/x86/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 58dce0b66179..91b3bc7deafd 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1158,10 +1158,10 @@ config X86_MCELOG_LEGACY

config X86_MCE_INTEL
def_bool y
- prompt "Intel MCE features"
- depends on X86_MCE && X86_LOCAL_APIC
+ prompt "Intel and Zhaoxin MCE features"
+ depends on X86_MCE && X86_LOCAL_APIC && (CPU_SUP_INTEL || CPU_SUP_ZHAOXIN)
help
- Additional support for intel specific MCE features such as
+ Additional support for Intel and Zhaoxin MCE features such as
the thermal monitor.

config X86_MCE_AMD

--
2.56.1