[PATCH v7 049/120] x86/mce: inject: Use parsed CPUID(0x1)
"Ahmed S. Darwish" <[email protected]> Thu, 28 May 2026 17:38:11 +0200
| Newsgroups | dev.linux.lists.x86-cpuid,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
For MCE injection, use parsed CPUID(0x1) instead of a direct CPUID query. Signed-off-by: Ahmed S. Darwish <[email protected]> --- 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