diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/cpuidle.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 50fcbb0ac4e7..accc2dd72049 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -119,6 +119,15 @@ struct cpuidle_driver { | |||
| 119 | 119 | ||
| 120 | #ifdef CONFIG_CPU_IDLE | 120 | #ifdef CONFIG_CPU_IDLE |
| 121 | extern void disable_cpuidle(void); | 121 | extern void disable_cpuidle(void); |
| 122 | |||
| 123 | extern int cpuidle_enabled(struct cpuidle_driver *drv, | ||
| 124 | struct cpuidle_device *dev); | ||
| 125 | extern int cpuidle_select(struct cpuidle_driver *drv, | ||
| 126 | struct cpuidle_device *dev); | ||
| 127 | extern int cpuidle_enter(struct cpuidle_driver *drv, | ||
| 128 | struct cpuidle_device *dev, int index); | ||
| 129 | extern void cpuidle_reflect(struct cpuidle_device *dev, int index); | ||
| 130 | |||
| 122 | extern int cpuidle_idle_call(void); | 131 | extern int cpuidle_idle_call(void); |
| 123 | extern int cpuidle_register_driver(struct cpuidle_driver *drv); | 132 | extern int cpuidle_register_driver(struct cpuidle_driver *drv); |
| 124 | extern struct cpuidle_driver *cpuidle_get_driver(void); | 133 | extern struct cpuidle_driver *cpuidle_get_driver(void); |
| @@ -141,6 +150,16 @@ extern int cpuidle_play_dead(void); | |||
| 141 | extern struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev); | 150 | extern struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev); |
| 142 | #else | 151 | #else |
| 143 | static inline void disable_cpuidle(void) { } | 152 | static inline void disable_cpuidle(void) { } |
| 153 | static inline int cpuidle_enabled(struct cpuidle_driver *drv, | ||
| 154 | struct cpuidle_device *dev) | ||
| 155 | {return -ENODEV; } | ||
| 156 | static inline int cpuidle_select(struct cpuidle_driver *drv, | ||
| 157 | struct cpuidle_device *dev) | ||
| 158 | {return -ENODEV; } | ||
| 159 | static inline int cpuidle_enter(struct cpuidle_driver *drv, | ||
| 160 | struct cpuidle_device *dev, int index) | ||
| 161 | {return -ENODEV; } | ||
| 162 | static inline void cpuidle_reflect(struct cpuidle_device *dev, int index) { } | ||
| 144 | static inline int cpuidle_idle_call(void) { return -ENODEV; } | 163 | static inline int cpuidle_idle_call(void) { return -ENODEV; } |
| 145 | static inline int cpuidle_register_driver(struct cpuidle_driver *drv) | 164 | static inline int cpuidle_register_driver(struct cpuidle_driver *drv) |
| 146 | {return -ENODEV; } | 165 | {return -ENODEV; } |
