On 21 August 2011 22:48, Russell King - ARM Linux linux@arm.linux.org.uk wrote:
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.
You are right. I will rebase it to the latest tree in the next version. The main intention of the patch series (mostly patch 4) is to collect information or issues on samsung platform with the new common cpuidle framework.