diff options
author | kn <kn@cvs.openbsd.org> | 2019-12-26 22:38:01 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2019-12-26 22:38:01 +0000 |
commit | 50cb72ca16f9ff2dfb1a07d90f69fae5a51614e3 (patch) | |
tree | d0cbff4368f5c873057a654353b7a0e1ac6d1866 /sys/kern/subr_disk.c | |
parent | e03efbaa3d86b2a662fc728caae44db2903537ed (diff) |
tsleep -> tsleep_nsec(9) in setroot()
OK cheloha bluhm
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 7bb2c0d9af3..0bfac3eb431 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.234 2018/04/28 15:44:59 jasper Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.235 2019/12/26 22:38:00 kn Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -1426,7 +1426,7 @@ setroot(struct device *bootdv, int part, int exitflags) TAILQ_FOREACH(dk, &disklist, dk_link) { if (dk->dk_devno != NODEV && (dk->dk_flags & DKF_OPENED) == 0) { - tsleep(dk, 0, "dkopen", hz); + tsleep_nsec(dk, 0, "dkopen", SEC_TO_NSEC(1)); slept++; break; } |