summaryrefslogtreecommitdiff
path: root/sys/dev/pccbb
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2008-12-07 18:34:27 +0000
committerWarner Losh <imp@FreeBSD.org>2008-12-07 18:34:27 +0000
commita5d1eba6cf7ce17dfd2575965b22555dc92d70c1 (patch)
tree793c19453190ed181d025b06ec83dce52cf4e748 /sys/dev/pccbb
parent3e7d0bebac143f9852853b0c419e8f4347f30de7 (diff)
Notes
Diffstat (limited to 'sys/dev/pccbb')
-rw-r--r--sys/dev/pccbb/pccbb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c
index 76dc00e1445a..13f36fab9fe3 100644
--- a/sys/dev/pccbb/pccbb.c
+++ b/sys/dev/pccbb/pccbb.c
@@ -515,11 +515,11 @@ cbb_event_thread(void *arg)
*/
mtx_lock(&sc->mtx);
cbb_setb(sc, CBB_SOCKET_MASK, CBB_SOCKET_MASK_CD | CBB_SOCKET_MASK_CSTS);
- msleep(&sc->intrhand, &sc->mtx, PZERO, "-", 0);
+ msleep(&sc->intrhand, &sc->mtx, 0, "-", 0);
err = 0;
while (err != EWOULDBLOCK &&
(sc->flags & CBB_KTHREAD_DONE) == 0)
- err = msleep(&sc->intrhand, &sc->mtx, PZERO, "-", hz / 5);
+ err = msleep(&sc->intrhand, &sc->mtx, 0, "-", hz / 5);
}
DEVPRINTF((sc->dev, "Thread terminating\n"));
sc->flags &= ~CBB_KTHREAD_RUNNING;
@@ -795,7 +795,7 @@ cbb_power(device_t brdev, int volts)
sane = 10;
while (!(cbb_get(sc, CBB_SOCKET_STATE) & CBB_STATE_POWER_CYCLE) &&
cnt == sc->powerintr && sane-- > 0)
- msleep(&sc->powerintr, &sc->mtx, PZERO, "-", hz / 20);
+ msleep(&sc->powerintr, &sc->mtx, 0, "-", hz / 20);
mtx_unlock(&sc->mtx);
/*
* The TOPIC95B requires a little bit extra time to get