[POWERPC] pseries: Enabling auto poweron after power is restored.
authorManish Ahuja <ahuja@austin.ibm.com>
Thu, 8 Feb 2007 22:01:17 +0000 (16:01 -0600)
committerPaul Mackerras <paulus@samba.org>
Fri, 16 Feb 2007 23:22:50 +0000 (10:22 +1100)
commit5d30bf309717a518d0c4180af41650d4dcd3bb38
treed76a078f1b1737092528a4305357bc6384aeb041
parentaebcbf39be0aadded32f4cd82c1d88a8cac4614b
[POWERPC] pseries: Enabling auto poweron after power is restored.

During power outages, the UPS notifies the system for a shutdown.
In the current setup, it isn't possible to poweron when power is
restored.  This patch fixes the issue by calling the right
ibm,power-off-ups token during such events.  It also adds a sysfs
interface so userspace can specify whether or not to power on when
power is restored.

Signed-off-by: Manish Ahuja <ahuja@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/power.c [new file with mode: 0644]
arch/powerpc/platforms/pseries/pseries.h
arch/powerpc/platforms/pseries/setup.c