From 977663b99170667667569e24c3cc3c783721c5d2 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 4 Nov 2009 19:14:11 +0000 Subject: Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it. ok jsing@, miod@ --- sys/dev/usb/ohci.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sys/dev/usb/ohci.c') diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index e402cf7c9fa..5a58262dcc1 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci.c,v 1.92 2009/10/13 19:33:17 pirofti Exp $ */ +/* $OpenBSD: ohci.c,v 1.93 2009/11/04 19:14:10 kettenis Exp $ */ /* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ @@ -1470,12 +1470,10 @@ ohci_softintr(void *v) } } -#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS if (sc->sc_softwake) { sc->sc_softwake = 0; wakeup(&sc->sc_softwake); } -#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */ sc->sc_bus.intr_context--; DPRINTFN(10,("ohci_softintr: done:\n")); @@ -2213,13 +2211,9 @@ ohci_abort_xfer(usbd_xfer_handle xfer, usbd_status status) */ usb_delay_ms(opipe->pipe.device->bus, 20); /* Hardware finishes in 1ms */ s = splusb(); -#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS sc->sc_softwake = 1; -#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */ usb_schedsoftintr(&sc->sc_bus); -#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS tsleep(&sc->sc_softwake, PZERO, "ohciab", 0); -#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */ splx(s); /* -- cgit v1.2.3