]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
ARM: tegra: Avoid compiling cpuidle code when not configured
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 23 Feb 2012 16:21:52 +0000 (18:21 +0200)
committerOlof Johansson <olof@lixom.net>
Sun, 26 Feb 2012 22:02:17 +0000 (14:02 -0800)
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>
arch/arm/mach-tegra/Makefile

index 0a5bc47afbf54a2ac2e8ca73d8842b2c06820af5..fc4ebe35f48404f396643e3434f94596202d0605 100644 (file)
@@ -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