On Fri, Aug 19, 2011 at 06:39:59PM +0530, Amit Daniel Kachhap wrote:
+ENTRY(exynos4_enter_lp)
- stmfd sp!, { r3 - r12, lr }
- adr r0, sleep_save_misc
- mrc p15, 0, r2, c15, c0, 0 @ read power control register
- str r2, [r0], #4
- mrc p15, 0, r2, c15, c0, 1 @ read diagnostic register
- str r2, [r0], #4
- ldr r3, =resume_with_mmu
- bl cpu_suspend
- mov r0, sp
- bl exynos4_cpu_lp
- /* Restore original sp */
- mov r0, sp
- add r0, r0, #4
- ldr sp, [r0]
- mov r0, #0
- b early_wakeup
This is based upon old kernel code. Clearly hasn't been tested with anything later than 3.0.