]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/kexec_core.c
printk/nmi: flush NMI messages on the system panic
[mirror_ubuntu-bionic-kernel.git] / kernel / kexec_core.c
index 1c03dfb4abfd31fa2d15fbd74c1c3e11794e3920..d5d40825299227d17ddfaf94fd36ecada8c69349 100644 (file)
@@ -893,6 +893,7 @@ void crash_kexec(struct pt_regs *regs)
        old_cpu = atomic_cmpxchg(&panic_cpu, PANIC_CPU_INVALID, this_cpu);
        if (old_cpu == PANIC_CPU_INVALID) {
                /* This is the 1st CPU which comes here, so go ahead. */
+               printk_nmi_flush_on_panic();
                __crash_kexec(regs);
 
                /*