mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -mm 3/6] cpu_relax(): floppy.c wait_til_ready()
@ 2006-06-21 20:59 Andreas Mohr
  0 siblings, 0 replies; only message in thread
From: Andreas Mohr @ 2006-06-21 20:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


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

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

only message in thread, other threads:[~2006-06-21 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21 20:59 [PATCH -mm 3/6] cpu_relax(): floppy.c wait_til_ready() Andreas Mohr

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®