aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pccbb/pccbb.c
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/pccbb.c
parent3e7d0bebac143f9852853b0c419e8f4347f30de7 (diff)
downloadsrc-a5d1eba6cf7ce17dfd2575965b22555dc92d70c1.tar.gz
src-a5d1eba6cf7ce17dfd2575965b22555dc92d70c1.zip
Use '0' rather than PZERO to not change the priority that I'm waiting
at. I don't think this will make a huge difference, but I have received a report of a interrupt storm on one 16-bit card that this might fix (chances are it won't, since I think that we may need to check both the CBB registers for the 16-bit card as well as the PCIC registers for power state change). Submitted by: jhb@
Notes
Notes: svn path=/head/; revision=185741
Diffstat (limited to 'sys/dev/pccbb/pccbb.c')
-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