diff options
author | joe <joe@FreeBSD.org> | 2002-04-01 21:18:50 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-04-01 21:18:50 +0000 |
commit | 34c7d606c9818987384d404948ecdc98521462bd (patch) | |
tree | 31ed95407405beb468f889dfa5bb57efca1d9f59 | |
parent | c043732a32a1bb7e6011e4be28c8e1eb62257800 (diff) | |
download | FreeBSD-src-34c7d606c9818987384d404948ecdc98521462bd.zip FreeBSD-src-34c7d606c9818987384d404948ecdc98521462bd.tar.gz |
MFNetBSD:
revision 1.132
date: 2001/01/20 23:36:02; author: augustss; state: Exp; lines: +6 -7
Change some splusb() to splhardusb().
-rw-r--r-- | sys/dev/usb/uhci.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c index 62463a5..715d92b 100644 --- a/sys/dev/usb/uhci.c +++ b/sys/dev/usb/uhci.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhci.c,v 1.131 2000/12/29 01:24:56 augustss Exp $ */ +/* $NetBSD: uhci.c,v 1.132 2001/01/20 23:36:02 augustss Exp $ */ /* $FreeBSD$ */ /* @@ -683,7 +683,7 @@ uhci_power(int why, void *v) int cmd; int s; - s = splusb(); + s = splhardusb(); cmd = UREAD2(sc, UHCI_CMD); DPRINTF(("uhci_power: sc=%p, why=%d (was %d), cmd=0x%x\n", @@ -1215,13 +1215,9 @@ uhci_intr(void *arg) sc->sc_dying = 1; } - if (ack) { /* acknowledge the ints */ - UWRITE2(sc, UHCI_STS, ack); - } else { /* nothing to acknowledge */ - printf("%s: UHCI interrupt, STS = 0x%04x, but ack == 0\n", - USBDEVNAME(sc->sc_bus.bdev), status); - return (0); - } + if (!ack) + return (0); /* nothing to acknowledge */ + UWRITE2(sc, UHCI_STS, ack); /* acknowledge the ints */ sc->sc_bus.no_intrs++; usb_schedsoftintr(&sc->sc_bus); @@ -1525,7 +1521,7 @@ uhci_run(uhci_softc_t *sc, int run) u_int16_t cmd; run = run != 0; - s = splusb(); + s = splhardusb(); DPRINTF(("uhci_run: setting run=%d\n", run)); cmd = UREAD2(sc, UHCI_CMD); if (run) |