[tip: x86/microcode] x86/microcode: Fix comment in microcode_loader_disabled()

tip-bot2 for Xiaoyao Li posted 1 patch 1 month ago
arch/x86/kernel/cpu/microcode/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[tip: x86/microcode] x86/microcode: Fix comment in microcode_loader_disabled()
Posted by tip-bot2 for Xiaoyao Li 1 month ago
The following commit has been merged into the x86/microcode branch of tip:

Commit-ID:     1458ade7469d7447499d4651abfaee9d4374857f
Gitweb:        https://git.kernel.org/tip/1458ade7469d7447499d4651abfaee9d4374857f
Author:        Xiaoyao Li <xiaoyao.li@intel.com>
AuthorDate:    Tue, 12 May 2026 23:27:54 +08:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Tue, 12 May 2026 18:28:04 +02:00

x86/microcode: Fix comment in microcode_loader_disabled()

The code in microcode_loader_disabled() actually checks for the bit 31
in CPUID[1]:ECX being set. Update the comment to match the code.

No functional change intended.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260512152754.671760-1-xiaoyao.li@intel.com
---
 arch/x86/kernel/cpu/microcode/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c
index 651202e..68a1a89 100644
--- a/arch/x86/kernel/cpu/microcode/core.c
+++ b/arch/x86/kernel/cpu/microcode/core.c
@@ -126,7 +126,7 @@ bool __init microcode_loader_disabled(void)
 	}
 
 	/*
-	 * 2) Bit 31 in CPUID[1]:ECX is clear
+	 * 2) Bit 31 in CPUID[1]:ECX is set
 	 *    The bit is reserved for hypervisor use. This is still not
 	 *    completely accurate as XEN PV guests don't see that CPUID bit
 	 *    set, but that's good enough as they don't land on the BSP