diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2006-01-05 19:43:45 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-22 22:16:52 -0500 |
commit | 5c4df6da580b9317dc0856e235232b95cbc8251c (patch) | |
tree | df82db654b024cd7204f182cbc40101681e012c0 /net/ieee80211/softmac/ieee80211softmac_module.c | |
parent | 45867e6a55aee984d69ce8f93a87e26d32d470dc (diff) |
[PATCH] softmac: convert to use global workqueue
Convert softmac to use global workqueue instead of private one...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_module.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_module.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_module.c b/net/ieee80211/softmac/ieee80211softmac_module.c index 1244a659cd83..79ef959a2c11 100644 --- a/net/ieee80211/softmac/ieee80211softmac_module.c +++ b/net/ieee80211/softmac/ieee80211softmac_module.c | |||
@@ -22,10 +22,6 @@ struct net_device *alloc_ieee80211softmac(int sizeof_priv) | |||
22 | * (once they're written) | 22 | * (once they're written) |
23 | */ | 23 | */ |
24 | 24 | ||
25 | softmac->workqueue = create_workqueue("80211softmac"); | ||
26 | if (!softmac->workqueue) | ||
27 | goto err_free_ieee80211; | ||
28 | |||
29 | INIT_LIST_HEAD(&softmac->auth_queue); | 25 | INIT_LIST_HEAD(&softmac->auth_queue); |
30 | INIT_LIST_HEAD(&softmac->network_list); | 26 | INIT_LIST_HEAD(&softmac->network_list); |
31 | INIT_LIST_HEAD(&softmac->events); | 27 | INIT_LIST_HEAD(&softmac->events); |
@@ -90,7 +86,7 @@ ieee80211softmac_clear_pending_work(struct ieee80211softmac_device *sm) | |||
90 | cancel_delayed_work(&eventptr->work); | 86 | cancel_delayed_work(&eventptr->work); |
91 | 87 | ||
92 | spin_unlock_irqrestore(&sm->lock, flags); | 88 | spin_unlock_irqrestore(&sm->lock, flags); |
93 | flush_workqueue(sm->workqueue); | 89 | flush_scheduled_work(); |
94 | 90 | ||
95 | // now we should be save and no longer need locking... | 91 | // now we should be save and no longer need locking... |
96 | spin_lock_irqsave(&sm->lock, flags); | 92 | spin_lock_irqsave(&sm->lock, flags); |
@@ -121,7 +117,6 @@ void free_ieee80211softmac(struct net_device *dev) | |||
121 | { | 117 | { |
122 | struct ieee80211softmac_device *sm = ieee80211_priv(dev); | 118 | struct ieee80211softmac_device *sm = ieee80211_priv(dev); |
123 | ieee80211softmac_clear_pending_work(sm); | 119 | ieee80211softmac_clear_pending_work(sm); |
124 | destroy_workqueue(sm->workqueue); | ||
125 | kfree(sm->scaninfo); | 120 | kfree(sm->scaninfo); |
126 | kfree(sm->wpa.IE); | 121 | kfree(sm->wpa.IE); |
127 | free_ieee80211(dev); | 122 | free_ieee80211(dev); |