sh: hibernation support
commit2ef7f0dab6b3d171b6aff00a47077385ae3155b5
authorMagnus Damm <damm@igel.co.jp>
Fri, 6 Mar 2009 09:47:02 +0000 (6 09:47 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 10 Mar 2009 03:55:40 +0000 (10 12:55 +0900)
tree6066996e7dfc65b02470ae4c1c96c6c7c70965a6
parentedab56f4c90f45ba4e61d06d3fc9658da4e94bde
sh: hibernation support

Add Suspend-to-disk / swsusp / CONFIG_HIBERNATION support
to the SuperH architecture.

To suspend, use "swapon /dev/sda2; echo disk > /sys/power/state"
To resume, pass "resume=/dev/sda2" on the kernel command line.

The patch "pm: rework includes, remove arch ifdefs V2" is
needed to allow the generic swsusp code to build properly.

Hibernation is not enabled with this patch though, a patch
setting ARCH_HIBERNATION_POSSIBLE will be submitted later.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/sections.h
arch/sh/include/asm/suspend.h [new file with mode: 0644]
arch/sh/kernel/Makefile_32
arch/sh/kernel/asm-offsets.c
arch/sh/kernel/cpu/sh3/Makefile
arch/sh/kernel/cpu/sh3/entry.S
arch/sh/kernel/cpu/sh3/swsusp.S [new file with mode: 0644]
arch/sh/kernel/cpu/sh4/Makefile
arch/sh/kernel/swsusp.c [new file with mode: 0644]