1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127778

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));