msm: pm: Notify TZ of L2 power collapse during the terminate PC call
This change notifies TZ of L2 power collapse during the SCM call to
terminate power collapse in TZ. This obsoletes the need for a L2 counter
in the IMEM memory location.
Change-Id: I17e335f021d5433328dedf9e5c3df4120a0bf1c1
Signed-off-by: Maheshkumar Sivasubramanian <msivasub@codeaurora.org>
diff --git a/arch/arm/mach-msm/idle-v7.S b/arch/arm/mach-msm/idle-v7.S
index aab93f4..8f57f88 100644
--- a/arch/arm/mach-msm/idle-v7.S
+++ b/arch/arm/mach-msm/idle-v7.S
@@ -115,7 +115,8 @@
#ifdef CONFIG_ARCH_MSM_KRAIT
ldr r0, =SCM_SVC_BOOT
ldr r1, =SCM_CMD_TERMINATE_PC
- ldr r2, =0
+ ldr r2, =msm_pm_flush_l2_flag
+ ldr r2, [r2]
bl scm_call_atomic1
#else
wfi