* [PATCH 2/2] OMAP3: PM: Invoke omap3_save_scratchpad_contents() only once at boot time
@ 2009-03-20 8:09 Kim Kyuwon
2009-04-01 0:14 ` Kevin Hilman
0 siblings, 1 reply; 2+ messages in thread
From: Kim Kyuwon @ 2009-03-20 8:09 UTC (permalink / raw)
To: OMAP; +Cc: Kevin Hilman, 박경민
If CONFIG_CPU_IDLE is y, omap3_save_scratchpad_contents() is called
twice at boot time. This patch let it be invoked only once.
Signed-off-by: Kim Kyuwon <q1.kim@samsung.com>
---
arch/arm/mach-omap2/cpuidle34xx.c | 2 --
arch/arm/mach-omap2/pm34xx.c | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-omap2/cpuidle34xx.c
b/arch/arm/mach-omap2/cpuidle34xx.c
index a5eba31..056fb5f 100644
--- a/arch/arm/mach-omap2/cpuidle34xx.c
+++ b/arch/arm/mach-omap2/cpuidle34xx.c
@@ -271,8 +271,6 @@ int omap3_idle_init(void)
struct cpuidle_state *state;
struct cpuidle_device *dev;
- omap3_save_scratchpad_contents();
-
mpu_pd = pwrdm_lookup("mpu_pwrdm");
core_pd = pwrdm_lookup("core_pwrdm");
per_pd = pwrdm_lookup("per_pwrdm");
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index ff9f28d..001baa9 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -967,6 +967,8 @@ int __init omap3_pm_init(void)
#endif /* CONFIG_SUSPEND */
pm_idle = omap3_pm_idle;
+
+ omap3_save_scratchpad_contents();
omap3_idle_init();
pwrdm_add_wkdep(neon_pwrdm, mpu_pwrdm);
@@ -984,10 +986,7 @@ int __init omap3_pm_init(void)
if (!omap3_secure_ram_storage)
printk(KERN_ERR "Memory allocation failed when"
"allocating for secure sram context\n");
- }
- omap3_save_scratchpad_contents();
- if (omap_type() != OMAP2_DEVICE_TYPE_GP) {
local_irq_disable();
local_fiq_disable();
--
1.5.2.5
--
Kim Kyuwon
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 2/2] OMAP3: PM: Invoke omap3_save_scratchpad_contents() only once at boot time
2009-03-20 8:09 [PATCH 2/2] OMAP3: PM: Invoke omap3_save_scratchpad_contents() only once at boot time Kim Kyuwon
@ 2009-04-01 0:14 ` Kevin Hilman
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2009-04-01 0:14 UTC (permalink / raw)
To: Kim Kyuwon; +Cc: OMAP, 박경민
Kim Kyuwon <chammoru@gmail.com> writes:
> If CONFIG_CPU_IDLE is y, omap3_save_scratchpad_contents() is called
> twice at boot time. This patch let it be invoked only once.
>
> Signed-off-by: Kim Kyuwon <q1.kim@samsung.com>
Thanks, pushing to PM branch.
Kevin
> ---
> arch/arm/mach-omap2/cpuidle34xx.c | 2 --
> arch/arm/mach-omap2/pm34xx.c | 5 ++---
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/cpuidle34xx.c
> b/arch/arm/mach-omap2/cpuidle34xx.c
> index a5eba31..056fb5f 100644
> --- a/arch/arm/mach-omap2/cpuidle34xx.c
> +++ b/arch/arm/mach-omap2/cpuidle34xx.c
> @@ -271,8 +271,6 @@ int omap3_idle_init(void)
> struct cpuidle_state *state;
> struct cpuidle_device *dev;
>
> - omap3_save_scratchpad_contents();
> -
> mpu_pd = pwrdm_lookup("mpu_pwrdm");
> core_pd = pwrdm_lookup("core_pwrdm");
> per_pd = pwrdm_lookup("per_pwrdm");
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index ff9f28d..001baa9 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -967,6 +967,8 @@ int __init omap3_pm_init(void)
> #endif /* CONFIG_SUSPEND */
>
> pm_idle = omap3_pm_idle;
> +
> + omap3_save_scratchpad_contents();
> omap3_idle_init();
>
> pwrdm_add_wkdep(neon_pwrdm, mpu_pwrdm);
> @@ -984,10 +986,7 @@ int __init omap3_pm_init(void)
> if (!omap3_secure_ram_storage)
> printk(KERN_ERR "Memory allocation failed when"
> "allocating for secure sram context\n");
> - }
> - omap3_save_scratchpad_contents();
>
> - if (omap_type() != OMAP2_DEVICE_TYPE_GP) {
> local_irq_disable();
> local_fiq_disable();
>
> --
> 1.5.2.5
>
>
> --
> Kim Kyuwon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-01 0:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20 8:09 [PATCH 2/2] OMAP3: PM: Invoke omap3_save_scratchpad_contents() only once at boot time Kim Kyuwon
2009-04-01 0:14 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox