OMAP3: PM: remove save/restore of exception handler state
PATCH 1/1 OMAP3: PM: remove save/restore of exception handler state
The exception handler state for the various modes of the processor (FIQ, IRQ, ABORT, UNDEF, SYSTEM) does not need a full context save/restore. Only the stack pointers for the used modes need a save/restore and this is done already in the ARM-generic cpu_init() function.
So, this patch drops the full save/restore and calls cpu_init() immiediately after returning from SRAM.
---
Applies on current PM branch.
arch/arm/mach-omap2/pm34xx.c | 1 + arch/arm/mach-omap2/sleep34xx.S | 113 +------------------------------------- 2 files changed, 4 insertions(+), 110 deletions(-)
arch/arm/mach-omap2/pm34xx.c +1 -0
@@ -420,6 +420,7 @@ void omap_sram_idle(void)* location and restores them back. */ _omap_sram_idle (omap3_arm_context, save_state); +cpu_init ();/* Restore normal SDRAM settings */ if (omap_rev() >= OMAP3430_REV_ES3_0 &&
arch/arm/mach-omap2/sleep34xx.S +3 -110
130 lines not on this page · raw message
Signature · 1 line
1.6.2.2
Quoted 10 lines · Kevin Hilman
The exception handler state for the various modes of the processor (FIQ, IRQ, ABORT, UNDEF, SYSTEM) does not need a full context save/restore. Only the stack pointers for the used modes need a save/restore and this is done already in the ARM-generic
cpu_init()function.So, this patch drops the full save/restore and calls
cpu_init()immiediately after returning from SRAM.Signed-off-by Kevin Hilman <[email protected]>
Pushing to the PM branch.
Kevin