summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPeter De Schrijver2012-02-23 17:21:52 +0100
committerOlof Johansson2012-02-26 23:02:17 +0100
commit64092d8f34774429a2519622e5cf0ca63b1ba517 (patch)
treef9a0149b22d78dfe370536eb9a9a74d3a3493ce9 /arch
parentARM: tegra: cpuidle driver for tegra (diff)
downloadkernel-qcow2-linux-64092d8f34774429a2519622e5cf0ca63b1ba517.tar.gz
kernel-qcow2-linux-64092d8f34774429a2519622e5cf0ca63b1ba517.tar.xz
kernel-qcow2-linux-64092d8f34774429a2519622e5cf0ca63b1ba517.zip
ARM: tegra: Avoid compiling cpuidle code when not configured
No need to compile cpuidle.c and sleep.S if cpuidle isn't configured in the kernel. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile
index 0a5bc47afbf5..fc4ebe35f484 100644
--- a/arch/arm/mach-tegra/Makefile
+++ b/arch/arm/mach-tegra/Makefile
@@ -7,8 +7,8 @@ obj-y += clock.o
obj-y += timer.o
obj-y += pinmux.o
obj-y += fuse.o
-obj-y += cpuidle.o
-obj-y += sleep.o
+obj-$(CONFIG_CPU_IDLE) += cpuidle.o
+obj-$(CONFIG_CPU_IDLE) += sleep.o
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += powergate.o
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_clocks.o
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_emc.o