]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86: only check for two watchdog NMIs
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 2 Feb 2016 13:01:57 +0000 (14:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Feb 2016 13:01:57 +0000 (14:01 +0100)
commitb6171b7b9fe1666bc5eae38bc5e992c2c233c43d
treeae81ffaaae28b6b65bef1c05b18bb610e6c30dc0
parent7d7918e28bd644490e8bff7003e6abf78f33031a
x86: only check for two watchdog NMIs

Since the NMI handler can now recognize watchdog NMIs, make
check_nmi_watchdog() only check for at least two watchdog NMIs.  This
prevents false negatives caused by other processors (which may be
being power managed by the BIOS) running at reduced clock frequencies.

We check for more than one NMI since there are apparently systems
where the NMI works only once.

This will also slightly speed up boot times since we only wait the
full 10 ticks if the NMI watchdog on one or more CPUs is not working.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/nmi.c