Skip to content

Commit

Permalink
x86, NMI: Add touch_nmi_watchdog to io_check_error delay
Browse files Browse the repository at this point in the history
Prevent the long delay in io_check_error making NMI watchdog
timeout.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
LKML-Reference: <1294198689-15447-3-git-send-email-dzickus@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Huang Ying authored and Ingo Molnar committed Jan 5, 2011
1 parent 554ec06 commit 74d91e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arch/x86/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74d91e3

Please sign in to comment.