]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/device.h
PM: Add facility for advanced testing of async suspend/resume
[net-next-2.6.git] / include / linux / device.h
index 70adc5f3f50a29a9449d775020d26fa905d6938f..b30527db3ac0f69ed95089f79c1e1dd7965479fc 100644 (file)
@@ -478,6 +478,17 @@ static inline void device_enable_async_suspend(struct device *dev)
                dev->power.async_suspend = true;
 }
 
+static inline void device_disable_async_suspend(struct device *dev)
+{
+       if (dev->power.status == DPM_ON)
+               dev->power.async_suspend = false;
+}
+
+static inline bool device_async_suspend_enabled(struct device *dev)
+{
+       return !!dev->power.async_suspend;
+}
+
 void driver_init(void);
 
 /*