summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/wd.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1995-04-22 22:44:30 +0000
committerdyson <dyson@FreeBSD.org>1995-04-22 22:44:30 +0000
commitb8e5de9a5601fbc2bb8b465f51d3ea2312a2fdcd (patch)
treee94da8db32c88028166b30566b2b4d97ead36b4d /sys/i386/isa/wd.c
parent50e9985ad4164587b178d14add414c6f6e70fdde (diff)
downloadFreeBSD-src-b8e5de9a5601fbc2bb8b465f51d3ea2312a2fdcd.zip
FreeBSD-src-b8e5de9a5601fbc2bb8b465f51d3ea2312a2fdcd.tar.gz
Change the initial delay in wdwait to a DELAY macro call. It is really
too long, but does not impact performance very much when using the NSECS_MULTI option. This will help solve some mysterious IDE I/O problems.
Diffstat (limited to 'sys/i386/isa/wd.c')
-rw-r--r--sys/i386/isa/wd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/i386/isa/wd.c b/sys/i386/isa/wd.c
index d729cc6..448cf38 100644
--- a/sys/i386/isa/wd.c
+++ b/sys/i386/isa/wd.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
- * $Id: wd.c,v 1.72 1995/04/12 20:48:10 wollman Exp $
+ * $Id: wd.c,v 1.73 1995/04/14 22:31:58 phk Exp $
*/
/* TODO:
@@ -1923,13 +1923,13 @@ wdwait(struct disk *du, u_char bits_wanted, int timeout)
wdc = du->dk_port;
timeout += POLLING;
- /* dummy read for delay */
- /*
- * the reason that we are reading from an *unused* port,
- * is that it might be *really* fast to read from the
- * wd port.
- */
- (void) inb(0x84);
+/*
+ * This delay is really too long, but does not impact the performance
+ * as much when using the NSECS_MULTI option. Shorter delays have
+ * caused I/O errors on some drives and system configs. This should
+ * probably be fixed if we develop a better short term delay mechanism.
+ */
+ DELAY(1);
do {
#ifdef WD_COUNT_RETRIES
OpenPOWER on IntegriCloud