From: Russell King Date: Mon, 13 Jun 2011 14:58:34 +0000 (+0100) Subject: ARM: pm: convert cpu_suspend() to a normal function X-Git-Tag: v3.1-rc1~258^2~1^8~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8856a8797e76e6883ae81f8f9ecbb231cc535df;p=pandora-kernel.git 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 Tested-by: Kevin Hilman Acked-by: Jean Pihet Signed-off-by: Russell King --- Reading git-diff-tree failed