Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281868
b: refs/heads/master
c: 72826b9
h: refs/heads/master
v: v3
  • Loading branch information
Santosh Shilimkar authored and Kevin Hilman committed Dec 8, 2011
1 parent e489908 commit d04431b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e97ca477e993da87769f967bd6f2602a7eab9715
refs/heads/master: 72826b9f8892957156e3d390b74d8bd5e0835d51
21 changes: 21 additions & 0 deletions trunk/arch/arm/mach-omap2/pm44xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,24 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused)
return pwrdm_set_next_pwrst(pwrst->pwrdm, pwrst->next_state);
}

/**
* omap_default_idle - OMAP4 default ilde routine.'
*
* Implements OMAP4 memory, IO ordering requirements which can't be addressed
* with default arch_idle() hook. Used by all CPUs with !CONFIG_CPUIDLE and
* by secondary CPU with CONFIG_CPUIDLE.
*/
static void omap_default_idle(void)
{
local_irq_disable();
local_fiq_disable();

omap_do_wfi();

local_fiq_enable();
local_irq_enable();
}

/**
* omap4_pm_init - Init routine for OMAP4 PM
*
Expand Down Expand Up @@ -175,6 +193,9 @@ static int __init omap4_pm_init(void)
suspend_set_ops(&omap_pm_ops);
#endif /* CONFIG_SUSPEND */

/* Overwrite the default arch_idle() */
pm_idle = omap_default_idle;

err2:
return ret;
}
Expand Down

0 comments on commit d04431b

Please sign in to comment.