[PATCH]Enabling Auto poweron after power is restored.
Paul Mackerras
paulus at samba.org
Fri Dec 8 17:09:35 EST 2006
Manish Ahuja writes:
> During power outages, the ups notifies the system for a shutdown. In the
> current setup, it isn't possible to power on 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 proc interface so that rc.powerfail
> can parse the epow events and modify the power-off behavior accordingly
> to enable the right token to be called.
With this patch, the kernel won't build if CONFIG_PPC_RTAS=y and
CONFIG_RTAS_PROC=n. Please move the definition of rtas_poweron_auto
from rtas-proc.c to rtas.c so that this (admittedly somewhat strange)
config will build.
Thanks,
Paul.
More information about the Linuxppc-dev
mailing list