ath - use ifnet serialization calls instead of directly calling lwkt
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 May 2010 00:18:04 +0000 (17:18 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 26 May 2010 00:18:04 +0000 (17:18 -0700)
* Use ifnet_*serialize_all() instead of lwkt_serialize_*().

sys/dev/netif/ath/rate_amrr/amrr.c
sys/dev/netif/ath/rate_onoe/onoe.c

index 3dff3ec..5afabbf 100644 (file)
@@ -454,7 +454,7 @@ ath_ratectl(void *arg)
        struct ieee80211com *ic = &sc->sc_ic;
        int interval;
 
-       lwkt_serialize_enter(ifp->if_serializer);
+       ifnet_serialize_all(ifp);
 
        if (ifp->if_flags & IFF_RUNNING) {
                sc->sc_stats.ast_rate_calls++;
@@ -469,7 +469,7 @@ ath_ratectl(void *arg)
                interval /= 2;
        callout_reset(&asc->timer, (interval * hz) / 1000, ath_ratectl, ifp);
 
-       lwkt_serialize_exit(ifp->if_serializer);
+       ifnet_deserialize_all(ifp);
 }
 
 static void
index 9e1dedc..9f1eae9 100644 (file)
@@ -437,7 +437,7 @@ ath_ratectl(void *arg)
        struct ieee80211com *ic = &sc->sc_ic;
        int interval;
 
-       lwkt_serialize_enter(ifp->if_serializer);
+       ifnet_serialize_all(ifp);
 
        if (ifp->if_flags & IFF_RUNNING) {
                sc->sc_stats.ast_rate_calls++;
@@ -452,7 +452,7 @@ ath_ratectl(void *arg)
                interval /= 2;
        callout_reset(&osc->timer, (interval * hz) / 1000, ath_ratectl, ifp);
 
-       lwkt_serialize_exit(ifp->if_serializer);
+       ifnet_deserialize_all(ifp);
 }
 
 static void