1 /* Public domain. */ 2 3 #ifndef _LINUXKPI_LINUX_PM_RUNTIME_H_ 4 #define _LINUXKPI_LINUX_PM_RUNTIME_H_ 5 6 #include <linux/device.h> 7 #include <linux/pm.h> 8 9 #define pm_runtime_mark_last_busy(x) (void)(x) 10 #define pm_runtime_use_autosuspend(x) (void)(x) 11 #define pm_runtime_dont_use_autosuspend(x) (void)(x) 12 #define pm_runtime_put_autosuspend(x) (void)(x) 13 #define pm_runtime_set_autosuspend_delay(x, y) (void)(x); (void)(y) 14 #define pm_runtime_set_active(x) (void)(x) 15 #define pm_runtime_allow(x) (void)(x) 16 #define pm_runtime_put_noidle(x) (void)(x) 17 #define pm_runtime_forbid(x) (void)(x) 18 #define pm_runtime_get_noresume(x) (void)(x) 19 #define pm_runtime_put(x) (void)(x) 20 #define pm_runtime_enable(x) (void)(x) 21 #define pm_runtime_disable(x) (void)(x) 22 #define pm_runtime_autosuspend(x) (void)(x) 23 #define pm_runtime_resume(x) (void)(x) 24 25 static inline int 26 pm_runtime_get_sync(struct device *dev) 27 { 28 return 0; 29 } 30 31 static inline int 32 pm_runtime_get_if_in_use(struct device *dev) 33 { 34 return 1; 35 } 36 37 static inline int 38 pm_runtime_get_if_active(struct device *dev, bool x) 39 { 40 return 1; 41 } 42 43 #endif /* _LINUXKPI_LINUX_PM_RUNTIME_H_ */ 44