[PATCH v7 049/120] x86/mce: inject: Use parsed CPUID(0x1)
From: Ahmed S. Darwish
Date: Thu May 28 2026 - 12:04:50 EST
For MCE injection, use parsed CPUID(0x1) instead of a direct CPUID query.
Signed-off-by: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>
---
arch/x86/kernel/cpu/mce/inject.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/mce/inject.c b/arch/x86/kernel/cpu/mce/inject.c
index 42c82c14c48a..10fe9bdd62d1 100644
--- a/arch/x86/kernel/cpu/mce/inject.c
+++ b/arch/x86/kernel/cpu/mce/inject.c
@@ -120,7 +120,7 @@ static void setup_inj_struct(struct mce *m)
m->cpuvendor = boot_cpu_data.x86_vendor;
m->time = ktime_get_real_seconds();
- m->cpuid = cpuid_eax(1);
+ m->cpuid = cpuid_leaf_raw(&boot_cpu_data, 0x1)->eax;
m->microcode = boot_cpu_data.microcode;
}
--
2.54.0