ARM: shmobile: r8a7740: Add CPU sleep suspend
authorBastian Hecht <hechtb@gmail.com>
Wed, 5 Dec 2012 12:13:07 +0000 (12:13 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Jan 2013 03:43:46 +0000 (12:43 +0900)
commit895d3b53fd910f78c52cba89243107fb132538f3
tree680a247468bd82e90855b3ff2535877261b777aa
parent13baf88bd69ed3cf7e2374eec4a7128f62ae9c1f
ARM: shmobile: r8a7740: Add CPU sleep suspend

Add the lighest possible sleep mode on Cortex-A9 cores: CPU sleep.
It is entered by a simple dsb and wfi instruction via cpu_do_idle(). As
just clocks are stopped there is no need to save or restore any state of
the system.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
Acked-by: Magnus Damm <damm@opensource.se>
[ horms@verge.net.au: Added missing includes ]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-armadillo800eva.c
arch/arm/mach-shmobile/include/mach/common.h
arch/arm/mach-shmobile/pm-r8a7740.c