check more quickly (and directly) if an interrupt is pending; this reduces

work done in ath_intr when the irq is shared

Obtained from:	madwifi
This commit is contained in:
Sam Leffler 2004-04-02 23:49:15 +00:00
parent b28b465391
commit fdd758d4d1

View File

@ -434,6 +434,8 @@ ath_intr(void *arg)
DPRINTF(ATH_DEBUG_ANY, ("%s: invalid; ignored\n", __func__));
return;
}
if (!ath_hal_intrpend(ah)) /* shared irq, not for us */
return;
if ((ifp->if_flags & (IFF_RUNNING|IFF_UP)) != (IFF_RUNNING|IFF_UP)) {
DPRINTF(ATH_DEBUG_ANY, ("%s: if_flags 0x%x\n",
__func__, ifp->if_flags));