From: Pavel Machek <pavel@suse.cz>
To: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: i386/kernel/traps.c: doing udelay by hand is ugly
Date: Thu, 3 May 2001 11:52:20 +0200 [thread overview]
Message-ID: <20010503115220.A30507@monk.suse.cz> (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
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);
}
reply other threads:[~2001-05-03 9:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010503115220.A30507@monk.suse.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®