The IBM Run-Time Abstract Services (RTAS) provides support for an
event log that allows the OS to receive hardware and firmware events.
Two types of event log are provided: a general log that needs to be
scanned at regular intervals (typically once per second), and an
exception log which is interrupt-triggered. Handle the log scan in
rtasdev itself. For the exception logs, add a new rtas_esrc driver
which attaches to each event source.
For most event types, we just log the event. For shutdown request
events, call shutdown_nice(RB_POWEROFF), which allows pSeries VM
shutdown requests to work.
This implementation is based on "Linux on Power Architecture Reference"
revision 2.9 (August 12, 2020).
MFC after: 2 weeks