x86, olpc: Add XO-1 suspend/resume support
authorDaniel Drake <dsd@laptop.org>
Sat, 25 Jun 2011 16:34:11 +0000 (17:34 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 6 Jul 2011 21:44:32 +0000 (14:44 -0700)
commit97c4cb71c18fe045a763ff6681a8ebbbbbec0b2b
tree66874802ab61cbf45c1d4d8d645b93e7600cdc0c
parenta3128588b3c6be634a9013a375903e0b55668f0a
x86, olpc: Add XO-1 suspend/resume support

Add code needed for basic suspend/resume of the XO-1 laptop.
Based on earlier work by Jordan Crouse, Andres Salomon, and others.

This patch incorporates all earlier feedback from Thomas Gleixner. To
clarify a certain point (now more obvious in the code itself):
On resume, OpenFirmware returns execution to Linux in protected mode
with a kernel-compatible GDT already set up. The changes and
simplifications suggested have all been included.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Link: http://lkml.kernel.org/r/1309019658-1712-5-git-send-email-dsd@laptop.org
Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/Kconfig
arch/x86/include/asm/olpc.h
arch/x86/platform/olpc/Makefile
arch/x86/platform/olpc/olpc-xo1-pm.c
arch/x86/platform/olpc/xo1-wakeup.S [new file with mode: 0644]
include/linux/cs5535.h