svn commit: r185741 - head/sys/dev/pccbb
Warner Losh
imp at FreeBSD.org
Sun Dec 7 10:34:27 PST 2008
Author: imp
Date: Sun Dec 7 18:34:27 2008
New Revision: 185741
URL: http://svn.freebsd.org/changeset/base/185741
Log:
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@
Modified:
head/sys/dev/pccbb/pccbb.c
Modified: head/sys/dev/pccbb/pccbb.c
==============================================================================
--- head/sys/dev/pccbb/pccbb.c Sun Dec 7 18:32:09 2008 (r185740)
+++ head/sys/dev/pccbb/pccbb.c Sun Dec 7 18:34:27 2008 (r185741)
@@ -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
More information about the svn-src-head
mailing list