From: Johannes Berg Date: Thu, 26 Jun 2008 17:59:56 +0000 (+0200) Subject: mac80211: make workqueue freezable X-Git-Tag: v2.6.27-rc1~969^2~254^2~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=59959a6150c8af737898e83f727e824dbed7b0fa;p=~shefty%2Frdma-dev.git mac80211: make workqueue freezable This patch makes the mac80211 workqueue freezable making it interact a bit better with system suspend and not try to ping the AP while the hardware is down. This doesn't really help with implementing proper suspend in any way but makes some bad things trigger less. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 5c5396edad3..b661ee5bb82 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -1691,7 +1691,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) list_add_tail(&sdata->list, &local->interfaces); name = wiphy_dev(local->hw.wiphy)->driver->name; - local->hw.workqueue = create_singlethread_workqueue(name); + local->hw.workqueue = create_freezeable_workqueue(name); if (!local->hw.workqueue) { result = -ENOMEM; goto fail_workqueue;