Use NMI_NONE when testing whether NMI watchdog is off.
Remove unused NMI_INVALID macro.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
int cpu;
bool_t ok = 1;
- if ( !nmi_watchdog )
+ if ( nmi_watchdog == NMI_NONE )
return 0;
printk("Testing NMI watchdog on all CPUs:");
void __pminit setup_apic_nmi_watchdog(void)
{
- if (!nmi_watchdog)
+ if ( nmi_watchdog == NMI_NONE )
return;
switch (boot_cpu_data.x86_vendor) {
if ( nmi_callback(regs, cpu) )
return;
- if ( !nmi_watchdog || (!nmi_watchdog_tick(regs) && watchdog_force) )
+ if ( (nmi_watchdog == NMI_NONE) ||
+ (!nmi_watchdog_tick(regs) && watchdog_force) )
handle_unknown = 1;
/* Only the BSP gets external NMIs from the system. */
#define NMI_NONE 0
#define NMI_IO_APIC 1
#define NMI_LOCAL_APIC 2
-#define NMI_INVALID 3
#else /* !CONFIG_X86_LOCAL_APIC */
static inline int lapic_suspend(void) {return 0;}