aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-09-03 18:05:51 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-09-03 18:05:51 -0400
commita1b5fd8fa29fb2359f398ef17a706449d94de80d (patch)
tree0fceec781252aa78e8c13061cca57cb7bece405f /include/linux
parentab271bc95b40960799c084b0e94a33c4272ec0bf (diff)
parent1b39e3f813b4685c7a30ae964d5529a1b0e3a286 (diff)
Merge branch 'pm-cpuidle'
* pm-cpuidle: cpuidle: Make drivers initialize polling state cpuidle: Move polling state initialization code to separate file cpuidle: Eliminate the CPUIDLE_DRIVER_STATE_START symbol cpuidle: Convert to using %pOF instead of full_name
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cpuidle.h13
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
229void cpuidle_poll_state_init(struct cpuidle_driver *drv);
230#else
231static 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; \