Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a089361c authored by Mingarelli, Thomas's avatar Mingarelli, Thomas Committed by Wim Van Sebroeck
Browse files

watchdog: hpwdt: Unregister NMI events on exit.



This patch is to unregister for NMI events upon exit. Also we are now
making the default setting for allow_kdump enabled.

Signed-off-by: default avatarThomas Mingarelli <thomas.mingarelli@hp.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent e5de32e3
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -146,7 +146,7 @@ struct cmn_registers {
}  __attribute__((packed));
}  __attribute__((packed));


static unsigned int hpwdt_nmi_decoding;
static unsigned int hpwdt_nmi_decoding;
static unsigned int allow_kdump;
static unsigned int allow_kdump = 1;
static unsigned int is_icru;
static unsigned int is_icru;
static DEFINE_SPINLOCK(rom_lock);
static DEFINE_SPINLOCK(rom_lock);
static void *cru_rom_addr;
static void *cru_rom_addr;
@@ -756,6 +756,8 @@ error:
static void hpwdt_exit_nmi_decoding(void)
static void hpwdt_exit_nmi_decoding(void)
{
{
	unregister_nmi_handler(NMI_UNKNOWN, "hpwdt");
	unregister_nmi_handler(NMI_UNKNOWN, "hpwdt");
	unregister_nmi_handler(NMI_SERR, "hpwdt");
	unregister_nmi_handler(NMI_IO_CHECK, "hpwdt");
	if (cru_rom_addr)
	if (cru_rom_addr)
		iounmap(cru_rom_addr);
		iounmap(cru_rom_addr);
}
}