mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* i386/kernel/traps.c: doing udelay by hand is ugly
@ 2001-05-03  9:52 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2001-05-03  9:52 UTC (permalink / raw)
  To: torvalds, linux-kernel

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);
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-03  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-03  9:52 i386/kernel/traps.c: doing udelay by hand is ugly Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®