From e22dc2b25655706751789a8d035b57bf04299cbd Mon Sep 17 00:00:00 2001 From: Joseph Lo Date: Tue, 4 Jun 2013 18:47:32 +0800 Subject: ARM: tegra: cpuidle: move the init function behind the suspend init function One of the state of CPUidle on Tegra can power gate the CPU and the vdd_cpu rail. But it depends on some configurations from DT and a common hook function for different Tegra SoCs to power gate the CPU rail. And these stuffs are initialized after common Tegra suspend init function. So we move the CPUidle init behind the suspend init function. And making the CPUidle driver more generic. Signed-off-by: Joseph Lo Signed-off-by: Stephen Warren --- arch/arm/mach-tegra/cpuidle.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/arm/mach-tegra/cpuidle.h') diff --git a/arch/arm/mach-tegra/cpuidle.h b/arch/arm/mach-tegra/cpuidle.h index d733f75d020..9bcf61fa38b 100644 --- a/arch/arm/mach-tegra/cpuidle.h +++ b/arch/arm/mach-tegra/cpuidle.h @@ -35,4 +35,10 @@ int tegra114_cpuidle_init(void); static inline int tegra114_cpuidle_init(void) { return -ENODEV; } #endif +#ifdef CONFIG_CPU_IDLE +void tegra_cpuidle_init(void); +#else +static inline void tegra_cpuidle_init(void) {} +#endif + #endif -- cgit v1.2.3-70-g09d2