RE: [PATCH 2/2] OMAP3: PM: Configure CPUidle latencies/thresholds from board files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

> -----Original Message-----
> From: linux-omap-owner@xxxxxxxxxxxxxxx 
> [mailto:linux-omap-owner@xxxxxxxxxxxxxxx] On Behalf Of Nayak, Rajendra
> Sent: Monday, June 29, 2009 8:05 PM
> To: linux-omap@xxxxxxxxxxxxxxx
> Cc: Nayak, Rajendra
> Subject: [PATCH 2/2] OMAP3: PM: Configure CPUidle 
> latencies/thresholds from board files
> 
> The CPUidle C state latencies and thresholds are dependent
> on various board specific details.
> Hence this patch makes it possible to configure these values from the
> respective board files.
> 
> Signed-off-by: Rajendra Nayak <rnayak@xxxxxx>
> ---
>  arch/arm/mach-omap2/board-3430sdp.c     |   22 ++++++-
>  arch/arm/mach-omap2/board-apollon.c     |    2 +-
>  arch/arm/mach-omap2/board-generic.c     |    2 +-
>  arch/arm/mach-omap2/board-h4.c          |    2 +-
>  arch/arm/mach-omap2/board-ldp.c         |    2 +-
>  arch/arm/mach-omap2/board-omap3beagle.c |    2 +-
>  arch/arm/mach-omap2/board-omap3evm.c    |    2 +-
>  arch/arm/mach-omap2/board-overo.c       |    3 +-
>  arch/arm/mach-omap2/board-rx51.c        |    2 +-
>  arch/arm/mach-omap2/board-zoom2.c       |    2 +-
>  arch/arm/mach-omap2/cpuidle34xx.c       |  105 
> ++++++++++++++++++++++++------
>  arch/arm/mach-omap2/io.c                |    5 +-
>  arch/arm/mach-omap2/pm.c                |    7 ++-
>  arch/arm/mach-omap2/pm.h                |   12 +++-
>  arch/arm/plat-omap/include/mach/io.h    |    4 +-
>  15 files changed, 136 insertions(+), 38 deletions(-)
> 

[snip]---[snip]

> diff --git a/arch/arm/plat-omap/include/mach/io.h 
> b/arch/arm/plat-omap/include/mach/io.h
> index 3582bef..d143bd9 100644
> --- a/arch/arm/plat-omap/include/mach/io.h
> +++ b/arch/arm/plat-omap/include/mach/io.h
> @@ -225,6 +225,7 @@
>  struct omap_sdrc_params;
>  struct omap_opp;
>  struct prm_setup_vc;
> +struct cpuidle_params;
>  
>  extern void omap1_map_common_io(void);
>  extern void omap1_init_common_hw(void);
> @@ -234,7 +235,8 @@ extern void omap2_init_common_hw(struct 
> omap_sdrc_params *sp,
>  				 struct omap_opp *mpu_opps,
>  				 struct omap_opp *dsp_opps,
>  				 struct omap_opp *l3_opps,
> -				 struct prm_setup_vc *setup_times);
> +				 struct prm_setup_vc *setup_times,
> +				 struct cpuidle_params *idle_params);

Rajendra, all,

Aren't we 'overloading' omap2_init_common_hw() each time we add another
argument to it?

Shouldn't we defined define a function specific for PM initialization?
Some of the initialization actually doesn't even touch the HW.

Best regards,
Sanjeev

>  
>  #define __arch_ioremap(p,s,t)	omap_ioremap(p,s,t)
>  #define __arch_iounmap(v)	omap_iounmap(v)
> -- 
> 1.5.4.7
> 
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-omap" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> --
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux