Date: Wed, 28 Sep 2011 03:11:52 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r225822 - head/sys/dev/ath Message-ID: <201109280311.p8S3BqPY052927@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Wed Sep 28 03:11:51 2011 New Revision: 225822 URL: http://svn.freebsd.org/changeset/base/225822 Log: Don't bother triggering the cabq queue if it's empty. Obtained from: Atheros Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Wed Sep 28 03:07:51 2011 (r225821) +++ head/sys/dev/ath/if_ath.c Wed Sep 28 03:11:51 2011 (r225822) @@ -2619,7 +2619,8 @@ ath_beacon_generate(struct ath_softc *sc sc->sc_stats.ast_cabq_xmit += nmcastq; } /* NB: gated by beacon so safe to start here */ - ath_hal_txstart(ah, cabq->axq_qnum); + if (! STAILQ_EMPTY(&(cabq->axq_q))) + ath_hal_txstart(ah, cabq->axq_qnum); ATH_TXQ_UNLOCK(&avp->av_mcastq); ATH_TXQ_UNLOCK(cabq); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109280311.p8S3BqPY052927>