ARM: pm: convert cpu_suspend() to a normal function
cpu_suspend() has a weird calling method which makes it only possible to call from assembly code: it returns with a modified stack pointer to finish the suspend, but on resume, it 'returns' via a provided pointer. We can make cpu_suspend() appear to be a normal function merely by swapping the resume pointer argument and the link register. Do so, and update all callers to take account of this more traditional behaviour. Acked-by:Frank Hofmann <frank.hofmann@tomtom.com> Tested-by:
Kevin Hilman <khilman@ti.com> Acked-by:
Jean Pihet <j-pihet@ti.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
Showing
- arch/arm/include/asm/system.h 2 additions, 0 deletionsarch/arm/include/asm/system.h
- arch/arm/kernel/sleep.S 4 additions, 6 deletionsarch/arm/kernel/sleep.S
- arch/arm/mach-exynos4/sleep.S 3 additions, 4 deletionsarch/arm/mach-exynos4/sleep.S
- arch/arm/mach-pxa/sleep.S 10 additions, 3 deletionsarch/arm/mach-pxa/sleep.S
- arch/arm/mach-s3c64xx/sleep.S 3 additions, 6 deletionsarch/arm/mach-s3c64xx/sleep.S
- arch/arm/mach-s5pv210/sleep.S 3 additions, 4 deletionsarch/arm/mach-s5pv210/sleep.S
- arch/arm/mach-sa1100/sleep.S 3 additions, 10 deletionsarch/arm/mach-sa1100/sleep.S
- arch/arm/plat-s3c24xx/sleep.S 3 additions, 7 deletionsarch/arm/plat-s3c24xx/sleep.S
Loading
Please register or sign in to comment