Messages in this thread Patch in this message | | | From | Ashok Raj <> | Subject | [v2 12/13] x86/microcode: Display revisions only when update is successful | Date | Thu, 3 Nov 2022 17:59:00 +0000 |
| |
Display the update message only when its successful
Reviewed-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Ashok Raj <ashok.raj@intel.com> --- arch/x86/kernel/cpu/microcode/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c index 17dba13d397d..a7d0cbbb2505 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -591,11 +591,11 @@ static int microcode_reload_late(void) if (ret == 0) microcode_check(&info); - pr_info("Reload completed, microcode revision: 0x%x -> 0x%x\n", - old, boot_cpu_data.microcode); - unregister_nmi_handler(NMI_LOCAL, "ucode_nmi"); + if (!ret) + pr_info("Reload completed, microcode revision: 0x%x -> 0x%x\n", + old, boot_cpu_data.microcode); done: return ret; } -- 2.34.1
| |