linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: tegra: Avoid compiling cpuidle code when not configured
@ 2012-02-23 16:21 Peter De Schrijver
  2012-02-23 17:00 ` Stephen Warren
  2012-02-26 22:02 ` Olof Johansson
  0 siblings, 2 replies; 3+ messages in thread
From: Peter De Schrijver @ 2012-02-23 16:21 UTC (permalink / raw)
  To: Peter De Schrijver
  Cc: Colin Cross, Olof Johansson, Stephen Warren, Russell King,
	linux-tegra, linux-arm-kernel, linux-kernel

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(-)

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
-- 
1.7.7.rc0.72.g4b5ea.dirty


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] ARM: tegra: Avoid compiling cpuidle code when not configured
  2012-02-23 16:21 [PATCH] ARM: tegra: Avoid compiling cpuidle code when not configured Peter De Schrijver
@ 2012-02-23 17:00 ` Stephen Warren
  2012-02-26 22:02 ` Olof Johansson
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Warren @ 2012-02-23 17:00 UTC (permalink / raw)
  To: Peter De Schrijver
  Cc: Colin Cross, Olof Johansson, Russell King, linux-tegra,
	linux-arm-kernel, linux-kernel

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>

-- 
nvpublic


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: tegra: Avoid compiling cpuidle code when not configured
  2012-02-23 16:21 [PATCH] ARM: tegra: Avoid compiling cpuidle code when not configured Peter De Schrijver
  2012-02-23 17:00 ` Stephen Warren
@ 2012-02-26 22:02 ` Olof Johansson
  1 sibling, 0 replies; 3+ messages in thread
From: Olof Johansson @ 2012-02-26 22:02 UTC (permalink / raw)
  To: Peter De Schrijver
  Cc: Colin Cross, Stephen Warren, Russell King, linux-tegra,
	linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-26 22:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 16:21 [PATCH] ARM: tegra: Avoid compiling cpuidle code when not configured Peter De Schrijver
2012-02-23 17:00 ` Stephen Warren
2012-02-26 22:02 ` Olof Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).