diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-08-21 08:44:45 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-28 14:40:34 -0400 |
commit | ea77f12f2cc0f31168f2e0259e65a22202ac4dc2 (patch) | |
tree | 8ac1288e1680ae2b6093b4fdca978a4ea86f7e21 /net/mac80211/main.c | |
parent | 3d54d25515838543e56889aa7e48f40d00719368 (diff) |
mac80211: remove tasklet enable/disable
Due to the way the tasklets work in mac80211 there's
no need to ever disable them.
However, we need to clear the pending packets when
taking down the last interface because otherwise
the tx_pending_tasklet might be queued if the
driver mucks with the queues (which it shouldn't).
I've had a situation occasionally with ar9170 in
which ksoftirq was using 100% CPU time because
a disabled tasklet was scheduled, and I think that
was due to ar9170 receiving a packet while the
tasklet was disabled. That's strange and it really
should not do that for other reasons, but there's
no need to waste that much CPU time over it, it
should just warn instead.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index dd3b0816614d..797f53942e5f 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -715,12 +715,10 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, | |||
715 | skb_queue_head_init(&local->pending[i]); | 715 | skb_queue_head_init(&local->pending[i]); |
716 | tasklet_init(&local->tx_pending_tasklet, ieee80211_tx_pending, | 716 | tasklet_init(&local->tx_pending_tasklet, ieee80211_tx_pending, |
717 | (unsigned long)local); | 717 | (unsigned long)local); |
718 | tasklet_disable(&local->tx_pending_tasklet); | ||
719 | 718 | ||
720 | tasklet_init(&local->tasklet, | 719 | tasklet_init(&local->tasklet, |
721 | ieee80211_tasklet_handler, | 720 | ieee80211_tasklet_handler, |
722 | (unsigned long) local); | 721 | (unsigned long) local); |
723 | tasklet_disable(&local->tasklet); | ||
724 | 722 | ||
725 | skb_queue_head_init(&local->skb_queue); | 723 | skb_queue_head_init(&local->skb_queue); |
726 | skb_queue_head_init(&local->skb_queue_unreliable); | 724 | skb_queue_head_init(&local->skb_queue_unreliable); |