From: Andreas Mohr <andi@rhlx01.fht-esslingen.de>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH -mm 3/6] cpu_relax(): floppy.c wait_til_ready()
Date: Wed, 21 Jun 2006 22:59:51 +0200 [thread overview]
Message-ID: <20060621205951.GC22516@rhlx01.fht-esslingen.de> (raw)
Add cpu_relax() to drivers/block/floppy.c/wait_til_ready()
Should be very useful, methinks.
Tested on 2.6.17-mm1 (load-time only, no floppy media here right now ;).
Signed-off-by: Andreas Mohr <andi@lisas.de>
diff -urN linux-2.6.17-mm1.orig/drivers/block/floppy.c linux-2.6.17-mm1.my/drivers/block/floppy.c
--- linux-2.6.17-mm1.orig/drivers/block/floppy.c 2006-06-21 14:28:16.000000000 +0200
+++ linux-2.6.17-mm1.my/drivers/block/floppy.c 2006-06-21 18:50:37.000000000 +0200
@@ -1155,6 +1155,7 @@
status = fd_inb(FD_STATUS);
if (status & STATUS_READY)
return status;
+ cpu_relax();
}
if (!initialising) {
DPRINT("Getstatus times out (%x) on fdc %d\n", status, fdc);
reply other threads:[~2006-06-21 21:00 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=20060621205951.GC22516@rhlx01.fht-esslingen.de \
--to=andi@rhlx01.fht-esslingen.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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®