mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 05:44:31 +08:00
[PATCH] kdump x86_64 nmi event notification fix
After a crash we should wait for NMI IPI event and not for external NMI or NMI watchdog tick. Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de> Cc: Don Zickus <dzickus@redhat.com> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org>
This commit is contained in:
parent
c7c19f8e5e
commit
3f22c5789e
@ -102,7 +102,7 @@ static int crash_nmi_callback(struct notifier_block *self,
|
|||||||
struct pt_regs *regs;
|
struct pt_regs *regs;
|
||||||
int cpu;
|
int cpu;
|
||||||
|
|
||||||
if (val != DIE_NMI)
|
if (val != DIE_NMI_IPI)
|
||||||
return NOTIFY_OK;
|
return NOTIFY_OK;
|
||||||
|
|
||||||
regs = ((struct die_args *)data)->regs;
|
regs = ((struct die_args *)data)->regs;
|
||||||
@ -114,7 +114,7 @@ static int crash_nmi_callback(struct notifier_block *self,
|
|||||||
* an NMI if system was initially booted with nmi_watchdog parameter.
|
* an NMI if system was initially booted with nmi_watchdog parameter.
|
||||||
*/
|
*/
|
||||||
if (cpu == crashing_cpu)
|
if (cpu == crashing_cpu)
|
||||||
return 1;
|
return NOTIFY_STOP;
|
||||||
local_irq_disable();
|
local_irq_disable();
|
||||||
|
|
||||||
crash_save_this_cpu(regs, cpu);
|
crash_save_this_cpu(regs, cpu);
|
||||||
|
Loading…
Reference in New Issue
Block a user