ARM: OMAP4: PM: Avoid expensive cpu_suspend() path for all CPU power states except off
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Wed, 13 Feb 2013 08:55:24 +0000 (14:25 +0530)
committerKevin Hilman <khilman@linaro.org>
Tue, 9 Apr 2013 17:53:06 +0000 (10:53 -0700)
commit72433ebada5a270899a7b1b1fa5afdc40d24998c
tree378ff2799598f61ff78db61d909a1d5d19ffca14
parentc309f7f46167e85d1aae2fd31f23e7d2b5cdfbe0
ARM: OMAP4: PM: Avoid expensive cpu_suspend() path for all CPU power states except off

Current CPU PM code code make use of common cpu_suspend() path for all the
CPU power states which is not optimal. In fact cpu_suspend() path is needed
only when we put CPU power domain to off state where the CPU context is lost.

Update the code accordingly so that the expensive cpu_suspend() path
can be avoided for the shallow CPU power states like CPU PD INA/CSWR.

The patch has been tested on OMAP4430 and OMAP5430(with few out of tree patches)
devices for suspend and CPUidle.

Cc: Kevin Hilman <khilman@deeprootsystems.com>
Reported-by: Richard Woodruff <r-woodruff2@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm/mach-omap2/omap-mpuss-lowpower.c