|
@@ -152,6 +152,8 @@ extern void cpuidle_disable_device(struct cpuidle_device *dev);
|
|
|
extern int cpuidle_play_dead(void);
|
|
|
|
|
|
extern struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev);
|
|
|
+static inline struct cpuidle_device *cpuidle_get_device(void)
|
|
|
+{return __this_cpu_read(cpuidle_devices); }
|
|
|
#else
|
|
|
static inline void disable_cpuidle(void) { }
|
|
|
static inline bool cpuidle_not_available(struct cpuidle_driver *drv,
|
|
@@ -187,6 +189,7 @@ static inline void cpuidle_disable_device(struct cpuidle_device *dev) { }
|
|
|
static inline int cpuidle_play_dead(void) {return -ENODEV; }
|
|
|
static inline struct cpuidle_driver *cpuidle_get_cpu_driver(
|
|
|
struct cpuidle_device *dev) {return NULL; }
|
|
|
+static inline struct cpuidle_device *cpuidle_get_device(void) {return NULL; }
|
|
|
#endif
|
|
|
|
|
|
#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_SUSPEND)
|