1 /* Public domain. */ 2 3 #ifndef _LINUX_PM_RUNTIME_H 4 #define _LINUX_PM_RUNTIME_H 5 6 #include <sys/types.h> 7 #include <sys/device.h> 8 #include <linux/pm.h> 9 10 #define pm_runtime_mark_last_busy(x) 11 #define pm_runtime_use_autosuspend(x) 12 #define pm_runtime_dont_use_autosuspend(x) 13 #define pm_runtime_put_autosuspend(x) 14 #define pm_runtime_set_autosuspend_delay(x, y) 15 #define pm_runtime_set_active(x) 16 #define pm_runtime_allow(x) 17 #define pm_runtime_put_noidle(x) 18 #define pm_runtime_forbid(x) 19 #define pm_runtime_get_noresume(x) 20 #define pm_runtime_put(x) 21 22 static inline int 23 pm_runtime_get_sync(struct device *dev) 24 { 25 return 0; 26 } 27 28 static inline int 29 pm_runtime_get_if_in_use(struct device *dev) 30 { 31 return -EINVAL; 32 } 33 34 #endif 35