From: Huang Ying Date: Wed, 5 Jan 2011 03:38:09 +0000 (-0500) Subject: x86, NMI: Add touch_nmi_watchdog to io_check_error delay X-Git-Tag: firefly_0821_release~7613^2~2648^2~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=74d91e3c6a66359bb754fb5d8a5b54fb6ba2f9a6;hp=554ec063982752e9a569ab9189eeffa3d96731b2;p=firefly-linux-kernel-4.4.55.git x86, NMI: Add touch_nmi_watchdog to io_check_error delay Prevent the long delay in io_check_error making NMI watchdog timeout. Signed-off-by: Huang Ying Signed-off-by: Don Zickus LKML-Reference: <1294198689-15447-3-git-send-email-dzickus@redhat.com> Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index bb6f04167361..c76aaca5694d 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -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);