x86/watchdog: Tweak implementation given new common code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Aug 2013 12:30:44 +0000 (14:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Aug 2013 12:30:44 +0000 (14:30 +0200)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/nmi.c

index 3eb245683684777f8902f8aa9e77cb380546fc9a..2c16d937e0e3ed110d7b58ee3598bbdaca175073 100644 (file)
@@ -435,8 +435,7 @@ void nmi_watchdog_tick(struct cpu_user_regs * regs)
 {
     unsigned int sum = this_cpu(nmi_timer_ticks);
 
-    if ( (this_cpu(last_irq_sums) == sum) &&
-         !atomic_read(&watchdog_disable_count) )
+    if ( (this_cpu(last_irq_sums) == sum) && watchdog_enabled() )
     {
         /*
          * Ayiee, looks like this CPU is stuck ... wait for the timeout