Date: Fri, 23 Sep 2011 15:36:52 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r225743 - user/adrian/if_ath_tx/sys/dev/ath Message-ID: <201109231536.p8NFaq9A077964@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Fri Sep 23 15:36:52 2011 New Revision: 225743 URL: http://svn.freebsd.org/changeset/base/225743 Log: For now, break out the beacon processing task into a separate task so it doesn't interrupt TX or RX completion. Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Fri Sep 23 15:32:03 2011 (r225742) +++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Fri Sep 23 15:36:52 2011 (r225743) @@ -380,6 +380,7 @@ ath_attach(u_int16_t devid, struct ath_s TASK_INIT(&sc->sc_rxtask, 0, ath_rx_proc, sc); TASK_INIT(&sc->sc_bmisstask, 0, ath_bmiss_proc, sc); TASK_INIT(&sc->sc_bstucktask,0, ath_bstuck_proc, sc); + TASK_INIT(&sc->sc_bproctask, 0, ath_beacon_proc, sc); /* * Allocate hardware transmit queues: one queue for @@ -1398,7 +1399,7 @@ ath_intr(void *arg) } else #endif { - ath_beacon_proc(sc, 0); + taskqueue_enqueue_fast(sc->sc_tq, &sc->sc_bproctask); #ifdef IEEE80211_SUPPORT_SUPERG /* * Schedule the rx taskq in case there's no Modified: user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h Fri Sep 23 15:32:03 2011 (r225742) +++ user/adrian/if_ath_tx/sys/dev/ath/if_athvar.h Fri Sep 23 15:36:52 2011 (r225743) @@ -461,6 +461,7 @@ struct ath_softc { struct ath_txq *sc_cabq; /* tx q for cab frames */ struct task sc_bmisstask; /* bmiss int processing */ struct task sc_bstucktask; /* stuck beacon processing */ + struct task sc_bproctask; /* beacon processing */ enum { OK, /* no change needed */ UPDATE, /* update pending */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109231536.p8NFaq9A077964>