Rev 6082 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6082 | Rev 6936 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | 8 | ||
9 | #ifndef _LINUX_PM_RUNTIME_H |
9 | #ifndef _LINUX_PM_RUNTIME_H |
Line 10... | Line 10... | ||
10 | #define _LINUX_PM_RUNTIME_H |
10 | #define _LINUX_PM_RUNTIME_H |
- | 11 | ||
11 | 12 | #include |
|
Line 12... | Line 13... | ||
12 | #include |
13 | #include |
Line 13... | Line 14... | ||
13 | #include |
14 | #include |
Line 36... | Line 37... | ||
36 | extern int pm_runtime_force_resume(struct device *dev); |
37 | extern int pm_runtime_force_resume(struct device *dev); |
Line 37... | Line 38... | ||
37 | 38 | ||
38 | extern int __pm_runtime_idle(struct device *dev, int rpmflags); |
39 | extern int __pm_runtime_idle(struct device *dev, int rpmflags); |
39 | extern int __pm_runtime_suspend(struct device *dev, int rpmflags); |
40 | extern int __pm_runtime_suspend(struct device *dev, int rpmflags); |
- | 41 | extern int __pm_runtime_resume(struct device *dev, int rpmflags); |
|
40 | extern int __pm_runtime_resume(struct device *dev, int rpmflags); |
42 | extern int pm_runtime_get_if_in_use(struct device *dev); |
41 | extern int pm_schedule_suspend(struct device *dev, unsigned int delay); |
43 | extern int pm_schedule_suspend(struct device *dev, unsigned int delay); |
42 | extern int __pm_runtime_set_status(struct device *dev, unsigned int status); |
44 | extern int __pm_runtime_set_status(struct device *dev, unsigned int status); |
43 | extern int pm_runtime_barrier(struct device *dev); |
45 | extern int pm_runtime_barrier(struct device *dev); |
44 | extern void pm_runtime_enable(struct device *dev); |
46 | extern void pm_runtime_enable(struct device *dev); |
Line 140... | Line 142... | ||
140 | } |
142 | } |
141 | static inline int pm_schedule_suspend(struct device *dev, unsigned int delay) |
143 | static inline int pm_schedule_suspend(struct device *dev, unsigned int delay) |
142 | { |
144 | { |
143 | return -ENOSYS; |
145 | return -ENOSYS; |
144 | } |
146 | } |
- | 147 | static inline int pm_runtime_get_if_in_use(struct device *dev) |
|
- | 148 | { |
|
- | 149 | return -EINVAL; |
|
- | 150 | } |
|
145 | static inline int __pm_runtime_set_status(struct device *dev, |
151 | static inline int __pm_runtime_set_status(struct device *dev, |
146 | unsigned int status) { return 0; } |
152 | unsigned int status) { return 0; } |
147 | static inline int pm_runtime_barrier(struct device *dev) { return 0; } |
153 | static inline int pm_runtime_barrier(struct device *dev) { return 0; } |
148 | static inline void pm_runtime_enable(struct device *dev) {} |
154 | static inline void pm_runtime_enable(struct device *dev) {} |
149 | static inline void __pm_runtime_disable(struct device *dev, bool c) {} |
155 | static inline void __pm_runtime_disable(struct device *dev, bool c) {} |