summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/pseries/pseries.h
diff options
context:
space:
mode:
authorManish Ahuja <ahuja@austin.ibm.com>2007-02-08 16:01:17 -0600
committerPaul Mackerras <paulus@samba.org>2007-02-17 10:22:50 +1100
commit5d30bf309717a518d0c4180af41650d4dcd3bb38 (patch)
treed76a078f1b1737092528a4305357bc6384aeb041 /arch/powerpc/platforms/pseries/pseries.h
parentaebcbf39be0aadded32f4cd82c1d88a8cac4614b (diff)
[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>
Diffstat (limited to 'arch/powerpc/platforms/pseries/pseries.h')
-rw-r--r--arch/powerpc/platforms/pseries/pseries.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h
index 35264f9af0f..22bc0198974 100644
--- a/arch/powerpc/platforms/pseries/pseries.h
+++ b/arch/powerpc/platforms/pseries/pseries.h
@@ -33,4 +33,7 @@ static inline void setup_kexec_cpu_down_xics(void) { }
static inline void setup_kexec_cpu_down_mpic(void) { }
#endif
+/* Poweron flag used for enabling auto ups restart */
+extern unsigned long rtas_poweron_auto;
+
#endif /* _PSERIES_PSERIES_H */