Hi!

Tiny cleanup in kernel/traps.c: doing mdelay by hand is ugly. Please apply.

                                                              Pavel

Index: arch/i386/kernel/traps.c
===================================================================
RCS file: /home/cvs/Repository/linux/arch/i386/kernel/traps.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 traps.c
--- arch/i386/kernel/traps.c    2001/04/19 20:02:45     1.1.1.2
+++ arch/i386/kernel/traps.c    2001/05/03 08:46:37
@@ -357,16 +350,13 @@
 
 static void io_check_error(unsigned char reason, struct pt_regs * regs)
 {
-       unsigned long i;
-
        printk("NMI: IOCK error (debug interrupt?)\n");
        show_registers(regs);
 
        /* Re-enable the IOCK line, wait for a few seconds */
        reason = (reason & 0xf) | 8;
        outb(reason, 0x61);
-       i = 2000;
-       while (--i) udelay(1000);
+       mdelay(2000);
        reason &= ~8;
        outb(reason, 0x61);
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to