ARM: tegra11x: make SMP disabled compiles
Jong Kim [Fri, 19 Oct 2012 23:32:25 +0000 (16:32 -0700)]
Make kernel compiles for disabled CONFIG_SMP.

bug 1057875

Change-Id: Ie7161a86279d31245290f4e74027c1cc5e646790
Signed-off-by: Jong Kim <jongk@nvidia.com>
Reviewed-on: http://git-master/r/160361
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Allen Martin <amartin@nvidia.com>

Rebase-Id: R4ea53210dffe973551e939137c9f33fce96db316

arch/arm/mach-tegra/pm.h

index 9754ce0..0811ff4 100644 (file)
@@ -242,7 +242,8 @@ extern bool tegra_all_cpus_booted __read_mostly;
 #define tegra_all_cpus_booted (true)
 #endif
 
-#if !defined(CONFIG_ARCH_TEGRA_2x_SOC) && !defined(CONFIG_ARCH_TEGRA_3x_SOC)
+#if !defined(CONFIG_ARCH_TEGRA_2x_SOC) && !defined(CONFIG_ARCH_TEGRA_3x_SOC) \
+       && defined(CONFIG_SMP)
 void tegra_smp_clear_power_mask(void);
 #else
 static inline void tegra_smp_clear_power_mask(void){}