lkml.org 
[lkml]   [2001]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjecti386/kernel/traps.c: doing udelay by hand is ugly
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.040 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site