Skip to contentSkip to conversation

i386/kernel/traps.c: doing udelay by hand is ugly

PATCH Pavel Machek 1 participant 1 message May 3, 2001

lore
Share & tools
lore
#0 lore raw

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

i386/kernel/traps.c +1 -4
diff -u -r1.1.1.2 traps.c
@@ -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);
 }