|
@@ -151,10 +151,6 @@ extern void cpuidle_resume(void);
|
|
extern int cpuidle_enable_device(struct cpuidle_device *dev);
|
|
extern int cpuidle_enable_device(struct cpuidle_device *dev);
|
|
extern void cpuidle_disable_device(struct cpuidle_device *dev);
|
|
extern void cpuidle_disable_device(struct cpuidle_device *dev);
|
|
extern int cpuidle_play_dead(void);
|
|
extern int cpuidle_play_dead(void);
|
|
-extern int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
|
|
|
|
- struct cpuidle_device *dev);
|
|
|
|
-extern int cpuidle_enter_freeze(struct cpuidle_driver *drv,
|
|
|
|
- struct cpuidle_device *dev);
|
|
|
|
|
|
|
|
extern struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev);
|
|
extern struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev);
|
|
#else
|
|
#else
|
|
@@ -190,14 +186,22 @@ static inline int cpuidle_enable_device(struct cpuidle_device *dev)
|
|
{return -ENODEV; }
|
|
{return -ENODEV; }
|
|
static inline void cpuidle_disable_device(struct cpuidle_device *dev) { }
|
|
static inline void cpuidle_disable_device(struct cpuidle_device *dev) { }
|
|
static inline int cpuidle_play_dead(void) {return -ENODEV; }
|
|
static inline int cpuidle_play_dead(void) {return -ENODEV; }
|
|
|
|
+static inline struct cpuidle_driver *cpuidle_get_cpu_driver(
|
|
|
|
+ struct cpuidle_device *dev) {return NULL; }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_SUSPEND)
|
|
|
|
+extern int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
|
|
|
|
+ struct cpuidle_device *dev);
|
|
|
|
+extern int cpuidle_enter_freeze(struct cpuidle_driver *drv,
|
|
|
|
+ struct cpuidle_device *dev);
|
|
|
|
+#else
|
|
static inline int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
|
|
static inline int cpuidle_find_deepest_state(struct cpuidle_driver *drv,
|
|
struct cpuidle_device *dev)
|
|
struct cpuidle_device *dev)
|
|
{return -ENODEV; }
|
|
{return -ENODEV; }
|
|
static inline int cpuidle_enter_freeze(struct cpuidle_driver *drv,
|
|
static inline int cpuidle_enter_freeze(struct cpuidle_driver *drv,
|
|
struct cpuidle_device *dev)
|
|
struct cpuidle_device *dev)
|
|
{return -ENODEV; }
|
|
{return -ENODEV; }
|
|
-static inline struct cpuidle_driver *cpuidle_get_cpu_driver(
|
|
|
|
- struct cpuidle_device *dev) {return NULL; }
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|
|
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|