Skip to contentSkip to conversation

OMAP3: PM: remove save/restore of exception handler state

PATCH In review Kevin Hilman 1 participant 2 messages May 19, 2009 – May 20, 2009

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
index a32b18f..80992c5 100644
@@ -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
#1 lore raw
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.

Pushing to the PM branch.

Kevin