linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: tegra: Enable CPUIdle on Tegra20
@ 2012-02-23 16:20 Peter De Schrijver
  2012-02-23 17:25 ` Stephen Warren
  0 siblings, 1 reply; 3+ messages in thread
From: Peter De Schrijver @ 2012-02-23 16:20 UTC (permalink / raw)
  To: Peter De Schrijver
  Cc: Colin Cross, Olof Johansson, Stephen Warren, Russell King,
	linux-tegra, linux-arm-kernel, linux-kernel

As the LP3 code also works for Tegra20, we can enable cpuidle for Tegra20.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>

---
Tested on Tegra2 Ventana,
/sys/devices/system/cpu/cpu[0-1]/cpuidle/state0/usage increments over time
and the system is stable.

---
 arch/arm/mach-tegra/common.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index e2a2c1f..2f86fcc 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -113,8 +113,6 @@ static void __init tegra_init_cache(u32 tag_latency, u32 data_latency)
 #ifdef CONFIG_ARCH_TEGRA_2x_SOC
 void __init tegra20_init_early(void)
 {
-	disable_hlt();  /* idle WFI usage needs to be confirmed */
-
 	tegra_init_fuse();
 	tegra2_init_clocks();
 	tegra_clk_init_from_table(tegra20_clk_init_table);
-- 
1.7.7.rc0.72.g4b5ea.dirty


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

* RE: [PATCH] ARM: tegra: Enable CPUIdle on Tegra20
  2012-02-23 16:20 [PATCH] ARM: tegra: Enable CPUIdle on Tegra20 Peter De Schrijver
@ 2012-02-23 17:25 ` Stephen Warren
  2012-03-04 18:51   ` Olof Johansson
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Warren @ 2012-02-23 17:25 UTC (permalink / raw)
  To: Peter De Schrijver, Nicolas Pitre (nico@fluxnic.net),
	Russell King - ARM Linux (linux@arm.linux.org.uk)
  Cc: Colin Cross, Olof Johansson, Russell King, linux-tegra,
	linux-arm-kernel, linux-kernel

Peter De Schrijver wrote at Thursday, February 23, 2012 9:21 AM:
> As the LP3 code also works for Tegra20, we can enable cpuidle for Tegra20.
> 
> Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>

Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>

Note that the commit which added this line appears to have been made in
Nicolas's idle branch, which was merged into Russell's for-armsoc branch.
This presumably impacts the path through which this fix should get merged.

(hence leaving the patch below for Nicolas/Russell to see)

> ---
>  arch/arm/mach-tegra/common.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
> index e2a2c1f..2f86fcc 100644
> --- a/arch/arm/mach-tegra/common.c
> +++ b/arch/arm/mach-tegra/common.c
> @@ -113,8 +113,6 @@ static void __init tegra_init_cache(u32 tag_latency, u32 data_latency)
>  #ifdef CONFIG_ARCH_TEGRA_2x_SOC
>  void __init tegra20_init_early(void)
>  {
> -	disable_hlt();  /* idle WFI usage needs to be confirmed */
> -
>  	tegra_init_fuse();
>  	tegra2_init_clocks();
>  	tegra_clk_init_from_table(tegra20_clk_init_table);
> --
> 1.7.7.rc0.72.g4b5ea.dirty

-- 
nvpublic


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

* Re: [PATCH] ARM: tegra: Enable CPUIdle on Tegra20
  2012-02-23 17:25 ` Stephen Warren
@ 2012-03-04 18:51   ` Olof Johansson
  0 siblings, 0 replies; 3+ messages in thread
From: Olof Johansson @ 2012-03-04 18:51 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Peter De Schrijver, Nicolas Pitre (nico@fluxnic.net),
	Russell King - ARM Linux (linux@arm.linux.org.uk),
	Colin Cross, linux-tegra, linux-arm-kernel, linux-kernel

On Thu, Feb 23, 2012 at 09:25:34AM -0800, Stephen Warren wrote:
> Peter De Schrijver wrote at Thursday, February 23, 2012 9:21 AM:
> > As the LP3 code also works for Tegra20, we can enable cpuidle for Tegra20.
> > 
> > Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
> 
> Acked-by: Stephen Warren <swarren@nvidia.com>
> Tested-by: Stephen Warren <swarren@nvidia.com>
> 
> Note that the commit which added this line appears to have been made in
> Nicolas's idle branch, which was merged into Russell's for-armsoc branch.
> This presumably impacts the path through which this fix should get merged.
> 
> (hence leaving the patch below for Nicolas/Russell to see)

Thanks, applied.


-Olof

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

end of thread, other threads:[~2012-03-04 18:51 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:20 [PATCH] ARM: tegra: Enable CPUIdle on Tegra20 Peter De Schrijver
2012-02-23 17:25 ` Stephen Warren
2012-03-04 18:51   ` 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).