net/wireless: enable wiphy device to suspend/resume asynchronously
authorFu, Zhonghui <zhonghui.fu@linux.intel.com>
Sat, 19 Sep 2015 02:40:14 +0000 (10:40 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 29 Sep 2015 13:56:46 +0000 (15:56 +0200)
Now, PM core supports asynchronous suspend/resume mode for devices
during system suspend/resume, and the power state transition of one
device may be completed in separate kernel thread. PM core ensures
all power state transition timing dependency between devices. This
patch enables wiphy device to suspend/resume asynchronously. This can
take advantage of multicore and improve system suspend/resume speed.

Signed-off-by: Zhonghui Fu <zhonghui.fu@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c

index 3893409dee95b3ba23c39b369a57c48c6e838d9b..f223026ddb03229e56c99934b02f07216f3c7f25 100644 (file)
@@ -419,6 +419,7 @@ use_default_name:
        device_initialize(&rdev->wiphy.dev);
        rdev->wiphy.dev.class = &ieee80211_class;
        rdev->wiphy.dev.platform_data = rdev;
+       device_enable_async_suspend(&rdev->wiphy.dev);
 
        INIT_LIST_HEAD(&rdev->destroy_list);
        spin_lock_init(&rdev->destroy_list_lock);