x86, olpc: Add XO-1 poweroff support
authorDaniel Drake <dsd@laptop.org>
Sun, 10 Oct 2010 09:40:32 +0000 (10:40 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 13 Oct 2010 00:31:15 +0000 (17:31 -0700)
commitbf1ebf007911d70a89de9a4a1b36d403e8eb064b
tree2bd9a4046c1194354e859d73c7b42bed2f2de163
parent286e5b97eb22baab9d9a41ca76c6b933a484252c
x86, olpc: Add XO-1 poweroff support

Add a pm_power_off handler for the OLPC XO-1 laptop.

The driver can be built modular and follows the behaviour of the
APM driver, setting pm_power_off to NULL on unload. However, the
ability to unload the module will probably be removed (with a simple
__module_get(THIS_MODULE)) if/when XO-1 suspend/resume support is
added to this file at a later date.

Signed-off-by: Daniel Drake <dsd@laptop.org>
LKML-Reference: <20101010094032.9AE669D401B@zog.reactivated.net>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/Kconfig
arch/x86/kernel/Makefile
arch/x86/kernel/olpc-xo1.c [new file with mode: 0644]