]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
ARM: OMAP4: PM: Add power domain statistics support
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Sun, 9 Jan 2011 19:32:15 +0000 (01:02 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 8 Dec 2011 19:29:01 +0000 (11:29 -0800)
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/omap-mpuss-lowpower.c

index 549aff1bfecb2f9ddcb5dfe5b53f290ac9d6b218..1d5d01056558fa0581410a35ba09d4bfeeff8cc0 100644 (file)
@@ -256,6 +256,8 @@ int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state)
                return -ENXIO;
        }
 
+       pwrdm_pre_transition();
+
        /*
         * Check MPUSS next state and save interrupt controller if needed.
         * In MPUSS OSWR or device OFF, interrupt controller  contest is lost.
@@ -288,6 +290,8 @@ int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state)
        wakeup_cpu = smp_processor_id();
        set_cpu_next_pwrst(wakeup_cpu, PWRDM_POWER_ON);
 
+       pwrdm_post_transition();
+
        return 0;
 }