ARM: OMAP2+: powerdomain: allow pre/post transtion to be per pwrdm
authorKevin Hilman <khilman@ti.com>
Fri, 11 May 2012 23:00:24 +0000 (16:00 -0700)
committerKevin Hilman <khilman@ti.com>
Mon, 25 Jun 2012 18:22:48 +0000 (11:22 -0700)
commite055548953355b6e69c56f9e54388845b29b4e97
treed9694b593408193e83574a1e49cb0c4908578182
parent9a17d88e0586bb7189655f8f99484a872a474626
ARM: OMAP2+: powerdomain: allow pre/post transtion to be per pwrdm

Iteration over all power domains in the idle path is unnecessary since
only power domains that are transitioning need to be accounted for.
Also PRCM register accesses are known to be expensive, so the
additional latency added to the idle path is signficiant.

In order allow the pre/post transitions to be isolated and called
per-pwrdm, change the API so passing in a specific power domain will
trigger the pre/post transtion accounting for only that specific power
domain.  Passing NULL means iterating over all power domains as is
current behavior.

Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/omap-mpuss-lowpower.c
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/powerdomain.h