Date: Sat, 22 Jul 2006 12:17:24 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 102140 for review Message-ID: <200607221217.k6MCHOTe032620@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102140 Change 102140 by piso@piso_longino on 2006/07/22 12:17:03 Use IF_FAST() instead of testing INTR_FAST in flags. Affected files ... .. //depot/projects/soc2006/intr_filter/dev/scc/scc_core.c#6 edit Differences ... ==== //depot/projects/soc2006/intr_filter/dev/scc/scc_core.c#6 (text) ==== @@ -510,14 +510,14 @@ return (EINVAL); /* Interrupt handlers must be FAST or MPSAFE. */ - if ((flags & (INTR_FAST|INTR_MPSAFE)) == 0) + if (!(IS_FAST(filter, handler)) || ((flags & INTR_MPSAFE) == 0)) return (EINVAL); sc = device_get_softc(dev); if (sc->sc_polled) return (ENXIO); - if (sc->sc_fastintr && !(flags & INTR_FAST)) { + if (sc->sc_fastintr && !(IS_FAST(filter, handler))) { sc->sc_fastintr = 0; for (c = 0; c < sc->sc_class->cl_channels; c++) { ch = &sc->sc_chan[c]; @@ -532,7 +532,7 @@ m = device_get_ivars(child); m->m_hasintr = 1; - m->m_fastintr = (flags & INTR_FAST) ? 1 : 0; + m->m_fastintr = IS_FAST(filter, handler) ? 1 : 0; m->ih = ihand; m->ih_arg = arg;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607221217.k6MCHOTe032620>