watchdog: Add signal for timeout event
Send out Timeout signal to indicate timeout event.
The new signal will be sent to the object path of the watchdog with
`xyz.openbmc_project.Watchdog` as the interface and the "Timeout"
as Member.
The first argument of signal will be the action taken by the timeout
event to help indicate the event type.
This allow the us to know that the timeout event happened and the action
taken. The action taken might not be the same as expiredAction due to
fallback mode.
Tested:
```
$ ipmitool sel list
3c | Pre-Init |0000000173| Watchdog2 #0xf9 | Power cycle | Asserted
3d | Pre-Init |0000000175| Watchdog2 #0xf9 | Power cycle | Asserted
3e | Pre-Init |0000000176| Watchdog2 #0xf9 | Power cycle | Asserted
3f | Pre-Init |0000000178| Watchdog2 #0xf9 | Power cycle | Asserted
```
Change-Id: I88b3e837c0e011fc6c2a0537bfd98b0720716076
Signed-off-by: Willy Tu <wltu@google.com>
2 files changed