cpu_relax(): floppy.c wait_til_ready()
Subsystems (2)
PATCH 3/6 cpu_relax(): floppy.c wait_til_ready()
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 <[email protected]>
drivers/block/floppy.c +1 -0
@@ -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);