x86, NMI: Add touch_nmi_watchdog to io_check_error delay
authorHuang Ying <[email protected]>
Wed, 5 Jan 2011 03:38:09 +0000 (22:38 -0500)
committerIngo Molnar <[email protected]>
Wed, 5 Jan 2011 13:22:58 +0000 (14:22 +0100)
Prevent the long delay in io_check_error making NMI watchdog
timeout.

Signed-off-by: Huang Ying <[email protected]>
Signed-off-by: Don Zickus <[email protected]>
LKML-Reference: <1294198689[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/traps.c

index bb6f041673615850aec151c4b51cf6d4ac17a29e..c76aaca5694dd88c6fee8af964e8c62ccd3ad272 100644 (file)
@@ -351,9 +351,11 @@ io_check_error(unsigned char reason, struct pt_regs *regs)
        reason = (reason & 0xf) | 8;
        outb(reason, 0x61);
 
-       i = 2000;
-       while (--i)
-               udelay(1000);
+       i = 20000;
+       while (--i) {
+               touch_nmi_watchdog();
+               udelay(100);
+       }
 
        reason &= ~8;
        outb(reason, 0x61);