diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpuidle.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index fc1e5d7fc1c7..5baacd3a0559 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h | |||
| @@ -63,6 +63,7 @@ struct cpuidle_state { | |||
| 63 | 63 | ||
| 64 | /* Idle State Flags */ | 64 | /* Idle State Flags */ |
| 65 | #define CPUIDLE_FLAG_NONE (0x00) | 65 | #define CPUIDLE_FLAG_NONE (0x00) |
| 66 | #define CPUIDLE_FLAG_POLLING (0x01) /* polling state */ | ||
| 66 | #define CPUIDLE_FLAG_COUPLED (0x02) /* state applies to multiple cpus */ | 67 | #define CPUIDLE_FLAG_COUPLED (0x02) /* state applies to multiple cpus */ |
| 67 | #define CPUIDLE_FLAG_TIMER_STOP (0x04) /* timer is stopped on this state */ | 68 | #define CPUIDLE_FLAG_TIMER_STOP (0x04) /* timer is stopped on this state */ |
| 68 | 69 | ||
| @@ -224,6 +225,12 @@ static inline void cpuidle_coupled_parallel_barrier(struct cpuidle_device *dev, | |||
| 224 | } | 225 | } |
| 225 | #endif | 226 | #endif |
| 226 | 227 | ||
| 228 | #ifdef CONFIG_ARCH_HAS_CPU_RELAX | ||
| 229 | void cpuidle_poll_state_init(struct cpuidle_driver *drv); | ||
| 230 | #else | ||
| 231 | static inline void cpuidle_poll_state_init(struct cpuidle_driver *drv) {} | ||
| 232 | #endif | ||
| 233 | |||
| 227 | /****************************** | 234 | /****************************** |
| 228 | * CPUIDLE GOVERNOR INTERFACE * | 235 | * CPUIDLE GOVERNOR INTERFACE * |
| 229 | ******************************/ | 236 | ******************************/ |
| @@ -250,12 +257,6 @@ static inline int cpuidle_register_governor(struct cpuidle_governor *gov) | |||
| 250 | {return 0;} | 257 | {return 0;} |
| 251 | #endif | 258 | #endif |
| 252 | 259 | ||
| 253 | #ifdef CONFIG_ARCH_HAS_CPU_RELAX | ||
| 254 | #define CPUIDLE_DRIVER_STATE_START 1 | ||
| 255 | #else | ||
| 256 | #define CPUIDLE_DRIVER_STATE_START 0 | ||
| 257 | #endif | ||
| 258 | |||
| 259 | #define CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx) \ | 260 | #define CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx) \ |
| 260 | ({ \ | 261 | ({ \ |
| 261 | int __ret; \ | 262 | int __ret; \ |
