diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2019-10-08 13:14:50 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2019-10-08 13:14:50 +0000 |
commit | 9daf6e2c7f53320245a788c118439f76e60464d0 (patch) | |
tree | 6ba554a209eba26467e5e6206324f775a9625cde | |
parent | fa96f56b15de1fb073a5abfb14c3509cd48349cd (diff) |
pcexmem(4): tsleep(9) -> tsleep_nsec(9); ok visa@
-rw-r--r-- | sys/arch/luna88k/cbus/pcex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/luna88k/cbus/pcex.c b/sys/arch/luna88k/cbus/pcex.c index ff28ee1c9dd..fb40842845c 100644 --- a/sys/arch/luna88k/cbus/pcex.c +++ b/sys/arch/luna88k/cbus/pcex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcex.c,v 1.3 2015/02/18 22:42:04 aoyama Exp $ */ +/* $OpenBSD: pcex.c,v 1.4 2019/10/08 13:14:49 cheloha Exp $ */ /* * Copyright (c) 2014 Kenji Aoyama. @@ -194,12 +194,12 @@ pcex_wait_int(struct pcex_softc *sc, u_int level) if (sc->intr_use[level] == 0) return EINVAL; /* Not registered */ - ret = tsleep(&(sc->intr_use[level]), PWAIT | PCATCH, "pcex", - hz /* XXX: 1 sec. */); + ret = tsleep_nsec(&(sc->intr_use[level]), PWAIT | PCATCH, "pcex", + SEC_TO_NSEC(1)); /* XXX 1 sec. */ #ifdef PCEX_DEBUG if (ret == EWOULDBLOCK) - printf("pcex_wait_int: timeout in tsleep\n"); + printf("pcex_wait_int: timeout in tsleep_nsec\n"); #endif return ret; } |