RE: [PATCH v3 1/2] OMAP3: SDRC: Dynamic Calculation of SDRC stall latency during DVFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From: linux-omap-owner@xxxxxxxxxxxxxxx [mailto:linux-omap-
>owner@xxxxxxxxxxxxxxx] On Behalf Of Pramod Gurav
>

[snip]

>diff --git a/arch/arm/mach-omap2/sram34xx.S b/arch/arm/mach-omap2/sram34xx.S
>index de99ba2..00da20a 100644
>--- a/arch/arm/mach-omap2/sram34xx.S
>+++ b/arch/arm/mach-omap2/sram34xx.S
>@@ -313,3 +313,14 @@ core_m2_mask_val:
> ENTRY(omap3_sram_configure_core_dpll_sz)
>       .word   . - omap3_sram_configure_core_dpll
>
>+ENTRY(__sram_wait_delay)
>+      stmfd   sp!, {lr}               @ store return addr to stack
>+
>+      loop1:
>+      subs    r0, r0, #1              @ loop till counter = 0
>+      bne     loop1
>+
>+      ldmfd   sp!, {pc}               @ restore return address
>+

If I remember well from my old ARM ASM days, you can even preserve the stack and one instruction in that case using the "mov pc, lr"

ENTRY(__sram_wait_delay)
        subs    r0, r0, #1              @ loop till counter = 0
        bne     __sram_wait_delay

        mov     pc, lr


Regards,
Benoit

Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920



--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux