diff options
author | Manish Ahuja <ahuja@austin.ibm.com> | 2007-02-08 22:01:17 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-02-16 23:22:50 (GMT) |
commit | 5d30bf309717a518d0c4180af41650d4dcd3bb38 (patch) | |
tree | d76a078f1b1737092528a4305357bc6384aeb041 /arch/powerpc/platforms/pseries/pseries.h | |
parent | aebcbf39be0aadded32f4cd82c1d88a8cac4614b (diff) | |
download | linux-fsl-qoriq-5d30bf309717a518d0c4180af41650d4dcd3bb38.tar.xz |
[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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h index 35264f9..22bc019 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 */ |