Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232953
b: refs/heads/master
c: 617fcc9
h: refs/heads/master
i:
  232951: 0370ecb
v: v3
  • Loading branch information
Kevin Hilman committed Jan 26, 2011
1 parent 5e1dbe3 commit 6808878
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28693ec01d0229b9e2a2ebe38ef8faa5e151b440
refs/heads/master: 617fcc98020bbc9492cacdef40423b758c02a9df
7 changes: 4 additions & 3 deletions trunk/arch/arm/mach-omap2/pm34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ static void omap3_core_restore_context(void)
* once during boot sequence, but this works as we are not using secure
* services.
*/
static void omap3_save_secure_ram_context(u32 target_mpu_state)
static void omap3_save_secure_ram_context(void)
{
u32 ret;
int mpu_next_state = pwrdm_read_next_pwrst(mpu_pwrdm);

if (omap_type() != OMAP2_DEVICE_TYPE_GP) {
/*
Expand All @@ -181,7 +182,7 @@ static void omap3_save_secure_ram_context(u32 target_mpu_state)
pwrdm_set_next_pwrst(mpu_pwrdm, PWRDM_POWER_ON);
ret = _omap_save_secure_sram((u32 *)
__pa(omap3_secure_ram_storage));
pwrdm_set_next_pwrst(mpu_pwrdm, target_mpu_state);
pwrdm_set_next_pwrst(mpu_pwrdm, mpu_next_state);
/* Following is for error tracking, it should not happen */
if (ret) {
printk(KERN_ERR "save_secure_sram() returns %08x\n",
Expand Down Expand Up @@ -1094,7 +1095,7 @@ static int __init omap3_pm_init(void)
local_fiq_disable();

omap_dma_global_context_save();
omap3_save_secure_ram_context(PWRDM_POWER_ON);
omap3_save_secure_ram_context();
omap_dma_global_context_restore();

local_irq_enable();
Expand Down

0 comments on commit 6808878

Please sign in to comment.