diff options
author | Joseph Lo <josephl@nvidia.com> | 2013-06-04 18:47:34 +0800 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-06-05 11:44:54 -0600 |
commit | b046a65f230f35edd8e537d97ca68b45e8c36240 (patch) | |
tree | abbbdb258f40a5611283fd1f6338b7d89b8415d6 /arch/arm/mach-tegra/cpuidle.h | |
parent | bf91add4a0feb7a8624a1f6b3fd4d6dbe9dce1bc (diff) | |
download | blackbird-op-linux-b046a65f230f35edd8e537d97ca68b45e8c36240.tar.gz blackbird-op-linux-b046a65f230f35edd8e537d97ca68b45e8c36240.zip |
ARM: tegra: cpuidle: using IS_ENABLED for multi SoCs management in init func
Clean up the Tegra CPUidle init function by using IS_ENABLED for multi
SoCs management in the init function.
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle.h')
-rw-r--r-- | arch/arm/mach-tegra/cpuidle.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/arm/mach-tegra/cpuidle.h b/arch/arm/mach-tegra/cpuidle.h index 9bcf61fa38b8..9ec2c1ab0fa4 100644 --- a/arch/arm/mach-tegra/cpuidle.h +++ b/arch/arm/mach-tegra/cpuidle.h @@ -17,25 +17,10 @@ #ifndef __MACH_TEGRA_CPUIDLE_H #define __MACH_TEGRA_CPUIDLE_H -#ifdef CONFIG_ARCH_TEGRA_2x_SOC +#ifdef CONFIG_CPU_IDLE int tegra20_cpuidle_init(void); -#else -static inline int tegra20_cpuidle_init(void) { return -ENODEV; } -#endif - -#ifdef CONFIG_ARCH_TEGRA_3x_SOC int tegra30_cpuidle_init(void); -#else -static inline int tegra30_cpuidle_init(void) { return -ENODEV; } -#endif - -#ifdef CONFIG_ARCH_TEGRA_114_SOC int tegra114_cpuidle_init(void); -#else -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) {} |