[RFC PATCH 3/4] ARM: EXYNOS4: Add support AFTR mode cpuidle state on EXYNOS4210
Amit Kachhap
amit.kachhap at linaro.org
Mon Aug 22 12:55:03 EDT 2011
On 21 August 2011 22:48, Russell King - ARM Linux
<linux at 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.
More information about the linux-arm-kernel
mailing list