sh: cpuidle for SuperH Mobile using hwblk
authorMagnus Damm <damm@igel.co.jp>
Fri, 3 Jul 2009 10:28:00 +0000 (10:28 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 4 Jul 2009 15:29:54 +0000 (00:29 +0900)
commit7426394f20c2e74b7c560bcd266cec1b327a269b
tree5003c509c9cf29caf598e956881bb9a3d65f0bf9
parenta61c1a636628a28ab5b42a9d36582a8f6a08893a
sh: cpuidle for SuperH Mobile using hwblk

This patch adds cpuidle support for SuperH Mobile.

The sleep mode selected by cpuidle is compared with
the mode selected by the hwblk sleep code and the
best allowed mode is entered.

At this point "Sleep mode" and "Sleep mode + SF" are
supported. This code can easily be extended to support
"Software suspend mode", but the assembly code must
first be updated to avoid loosing interrupts.

Also, update the code to only copy the assembly snippet
into internal memory once at bootup.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/suspend.h
arch/sh/kernel/cpu/shmobile/Makefile
arch/sh/kernel/cpu/shmobile/cpuidle.c [new file with mode: 0644]
arch/sh/kernel/cpu/shmobile/pm.c