ARM: pm: rejig suspend follow-on function calling convention
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 13 Jun 2011 14:28:40 +0000 (15:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 24 Jun 2011 07:47:36 +0000 (08:47 +0100)
commit3799bbe57843d279008c9ec3406838966cad5f15
tree791781918bd18ac0747eb0b82d8eb5e2205af105
parent8111eaa6d424ab3ba8a4d7a3148d4681ae5c6ae3
ARM: pm: rejig suspend follow-on function calling convention

Save the suspend function pointer onto the stack for use when returning.
Allocate r2 to pass an argument to the suspend function.

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>
arch/arm/kernel/sleep.S