diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpuidle.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index 15deea449edc..da346f2817a8 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -74,6 +74,7 @@ struct cpuidle_driver_kobj; | |||
| 74 | struct cpuidle_device { | 74 | struct cpuidle_device { |
| 75 | unsigned int registered:1; | 75 | unsigned int registered:1; |
| 76 | unsigned int enabled:1; | 76 | unsigned int enabled:1; |
| 77 | unsigned int use_deepest_state:1; | ||
| 77 | unsigned int cpu; | 78 | unsigned int cpu; |
| 78 | 79 | ||
| 79 | int last_residency; | 80 | int last_residency; |
| @@ -192,11 +193,12 @@ static inline struct cpuidle_driver *cpuidle_get_cpu_driver( | |||
| 192 | static inline struct cpuidle_device *cpuidle_get_device(void) {return NULL; } | 193 | static inline struct cpuidle_device *cpuidle_get_device(void) {return NULL; } |
| 193 | #endif | 194 | #endif |
| 194 | 195 | ||
| 195 | #if defined(CONFIG_CPU_IDLE) && defined(CONFIG_SUSPEND) | 196 | #ifdef CONFIG_CPU_IDLE |
| 196 | extern int cpuidle_find_deepest_state(struct cpuidle_driver *drv, | 197 | extern int cpuidle_find_deepest_state(struct cpuidle_driver *drv, |
| 197 | struct cpuidle_device *dev); | 198 | struct cpuidle_device *dev); |
| 198 | extern int cpuidle_enter_freeze(struct cpuidle_driver *drv, | 199 | extern int cpuidle_enter_freeze(struct cpuidle_driver *drv, |
| 199 | struct cpuidle_device *dev); | 200 | struct cpuidle_device *dev); |
| 201 | extern void cpuidle_use_deepest_state(bool enable); | ||
| 200 | #else | 202 | #else |
| 201 | static inline int cpuidle_find_deepest_state(struct cpuidle_driver *drv, | 203 | static inline int cpuidle_find_deepest_state(struct cpuidle_driver *drv, |
| 202 | struct cpuidle_device *dev) | 204 | struct cpuidle_device *dev) |
| @@ -204,6 +206,9 @@ static inline int cpuidle_find_deepest_state(struct cpuidle_driver *drv, | |||
| 204 | static inline int cpuidle_enter_freeze(struct cpuidle_driver *drv, | 206 | static inline int cpuidle_enter_freeze(struct cpuidle_driver *drv, |
| 205 | struct cpuidle_device *dev) | 207 | struct cpuidle_device *dev) |
| 206 | {return -ENODEV; } | 208 | {return -ENODEV; } |
| 209 | static inline void cpuidle_use_deepest_state(bool enable) | ||
| 210 | { | ||
| 211 | } | ||
| 207 | #endif | 212 | #endif |
| 208 | 213 | ||
| 209 | /* kernel/sched/idle.c */ | 214 | /* kernel/sched/idle.c */ |
