Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Use delay by default on hpcmips for now.



details:   https://anonhg.NetBSD.org/src/rev/b51d79d31ce4
branches:  trunk
changeset: 481359:b51d79d31ce4
user:      enami <enami%NetBSD.org@localhost>
date:      Thu Jan 27 01:05:17 2000 +0000

description:
Use delay by default on hpcmips for now.

diffstat:

 sys/dev/ic/i82365.c |  18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diffs (39 lines):

diff -r e3ce7c669557 -r b51d79d31ce4 sys/dev/ic/i82365.c
--- a/sys/dev/ic/i82365.c       Wed Jan 26 22:28:38 2000 +0000
+++ b/sys/dev/ic/i82365.c       Thu Jan 27 01:05:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82365.c,v 1.31 2000/01/25 19:38:18 chopps Exp $       */
+/*     $NetBSD: i82365.c,v 1.32 2000/01/27 01:05:17 enami Exp $        */
 
 #define        PCICDEBUG
 
@@ -99,6 +99,15 @@
 static u_int8_t st_pcic_read __P((struct pcic_handle *, int));
 static void st_pcic_write __P((struct pcic_handle *, int, u_int8_t));
 
+#if !defined(PCIC_DELAY_SLEEP)
+#if defined(__hpcmips__)
+#define PCIC_DELAY_SLEEP 0
+#else
+#define PCIC_DELAY_SLEEP 1
+#endif
+#endif
+int pcic_delay_sleep = PCIC_DELAY_SLEEP;
+
 int
 pcic_ident_ok(ident)
        int ident;
@@ -1343,7 +1352,12 @@
        }
 #endif
        DPRINTF(("pcic_delay: %p, sleep %d ms\n", h->event_thread, timo));
-       tsleep(pcic_delay, PWAIT, ident, roundup(timo * hz, 1000) / 1000);
+
+       if (pcic_delay_sleep)
+               tsleep(pcic_delay, PWAIT, ident,
+                   roundup(timo * hz, 1000) / 1000);
+       else
+               delay(timo * 1000);
 }
 
 void



Home | Main Index | Thread Index | Old Index