|
@@ -51,6 +51,8 @@ struct cpuidle_state {
|
|
int (*enter) (struct cpuidle_device *dev,
|
|
int (*enter) (struct cpuidle_device *dev,
|
|
struct cpuidle_driver *drv,
|
|
struct cpuidle_driver *drv,
|
|
int index);
|
|
int index);
|
|
|
|
+
|
|
|
|
+ int (*enter_dead) (struct cpuidle_device *dev, int index);
|
|
};
|
|
};
|
|
|
|
|
|
/* Idle State Flags */
|
|
/* Idle State Flags */
|
|
@@ -147,6 +149,8 @@ extern int cpuidle_wrap_enter(struct cpuidle_device *dev,
|
|
struct cpuidle_driver *drv, int index,
|
|
struct cpuidle_driver *drv, int index,
|
|
int (*enter)(struct cpuidle_device *dev,
|
|
int (*enter)(struct cpuidle_device *dev,
|
|
struct cpuidle_driver *drv, int index));
|
|
struct cpuidle_driver *drv, int index));
|
|
|
|
+extern int cpuidle_play_dead(void);
|
|
|
|
+
|
|
#else
|
|
#else
|
|
static inline void disable_cpuidle(void) { }
|
|
static inline void disable_cpuidle(void) { }
|
|
static inline int cpuidle_idle_call(void) { return -ENODEV; }
|
|
static inline int cpuidle_idle_call(void) { return -ENODEV; }
|
|
@@ -168,6 +172,7 @@ static inline int cpuidle_wrap_enter(struct cpuidle_device *dev,
|
|
int (*enter)(struct cpuidle_device *dev,
|
|
int (*enter)(struct cpuidle_device *dev,
|
|
struct cpuidle_driver *drv, int index))
|
|
struct cpuidle_driver *drv, int index))
|
|
{ return -ENODEV; }
|
|
{ return -ENODEV; }
|
|
|
|
+static inline int cpuidle_play_dead(void) {return -ENODEV; }
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|