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

Commit 1a1b1d13 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Thomas Gleixner
Browse files

x86: watchdog - check for CPU is being supported



This patch does check if CPU is being recongnized
before call the unreserve(). Since enable_lapic_nmi_watchdog()
does have such a check the same is make sense here too
in a sake of code consistency (but nothing more).

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Cc: mingo@redhat.com
Cc: hpa@zytor.com
Cc: macro@linux-mips.org
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 3ed3f062
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -181,6 +181,8 @@ void disable_lapic_nmi_watchdog(void)
		return;
		return;


	on_each_cpu(stop_apic_nmi_watchdog, NULL, 0, 1);
	on_each_cpu(stop_apic_nmi_watchdog, NULL, 0, 1);

	if (wd_ops)
		wd_ops->unreserve();
		wd_ops->unreserve();


	BUG_ON(atomic_read(&nmi_active) != 0);
	BUG_ON(atomic_read(&nmi_active) != 0);