diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-06-09 05:23:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-06-09 05:23:30 +0000 |
commit | 156e1f5ebb7cd20a62a574d6bd69f3f00fb02c02 (patch) | |
tree | f2583a20d1408b5a1665a1bae0dc5360e840815e /sys/arch/hp300/dev/hd.c | |
parent | cc8e8b767951687f89ee94d3a5f12c70a1aa43a6 (diff) |
convert sleep() calls to tsleep().
Diffstat (limited to 'sys/arch/hp300/dev/hd.c')
-rw-r--r-- | sys/arch/hp300/dev/hd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c index b667b0e1663..0470eb8baf2 100644 --- a/sys/arch/hp300/dev/hd.c +++ b/sys/arch/hp300/dev/hd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hd.c,v 1.17 2002/06/09 02:11:47 jsyn Exp $ */ +/* $OpenBSD: hd.c,v 1.18 2002/06/09 05:23:26 miod Exp $ */ /* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */ /* @@ -560,7 +560,7 @@ hdopen(dev, flags, mode, p) * Wait for any pending opens/closes to complete */ while (rs->sc_flags & (HDF_OPENING|HDF_CLOSING)) - sleep((caddr_t)rs, PRIBIO); + tsleep((caddr_t)rs, PRIBIO, "hdopen", 0); /* * On first open, get label and partition info. @@ -629,7 +629,7 @@ hdclose(dev, flag, mode, p) s = splbio(); while (rs->sc_tab.b_active) { rs->sc_flags |= HDF_WANTED; - sleep((caddr_t)&rs->sc_tab, PRIBIO); + tsleep((caddr_t)&rs->sc_tab, PRIBIO, "hdclose", 0); } splx(s); rs->sc_flags &= ~(HDF_CLOSING); |