|
@@ -35,6 +35,7 @@ extern void cpuidle_remove_sysfs(struct cpuidle_device *dev);
|
|
|
|
|
|
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|
|
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
|
|
bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state);
|
|
bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state);
|
|
|
|
+int cpuidle_coupled_state_verify(struct cpuidle_driver *drv);
|
|
int cpuidle_enter_state_coupled(struct cpuidle_device *dev,
|
|
int cpuidle_enter_state_coupled(struct cpuidle_device *dev,
|
|
struct cpuidle_driver *drv, int next_state);
|
|
struct cpuidle_driver *drv, int next_state);
|
|
int cpuidle_coupled_register_device(struct cpuidle_device *dev);
|
|
int cpuidle_coupled_register_device(struct cpuidle_device *dev);
|
|
@@ -46,6 +47,11 @@ bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state)
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int cpuidle_coupled_state_verify(struct cpuidle_driver *drv)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int cpuidle_enter_state_coupled(struct cpuidle_device *dev,
|
|
static inline int cpuidle_enter_state_coupled(struct cpuidle_device *dev,
|
|
struct cpuidle_driver *drv, int next_state)
|
|
struct cpuidle_driver *drv, int next_state)
|
|
{
|
|
{
|