diff mbox

ARM: tegra: Avoid compiling cpuidle code when not configured

Message ID 1330014112-26203-1-git-send-email-pdeschrijver@nvidia.com
State Accepted, archived
Headers show

Commit Message

Peter De Schrijver Feb. 23, 2012, 4:21 p.m. UTC
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>
---
 arch/arm/mach-tegra/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Stephen Warren Feb. 23, 2012, 5 p.m. UTC | #1
Peter De Schrijver wrote at Thursday, February 23, 2012 9:22 AM:
> 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>

It doesn't really need it since it's such a small change, but since I
bothered to compile-test it:

Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Olof Johansson Feb. 26, 2012, 10:02 p.m. UTC | #2
On Thu, Feb 23, 2012 at 06:21:52PM +0200, Peter De Schrijver wrote:
> No need to compile cpuidle.c and sleep.S if cpuidle isn't configured in the
> kernel.

Thanks, applied to for-3.4/soc.

-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile
index 82994c0..d4c1a6b 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-y					+= pmc.o
 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)		+= powergate.o
 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)         += tegra2_clocks.o