Set expiredTimerUse when timer expired
IPMI get watchdog command needs this expiredTImerUse property,
For the Timer Use Expiration flags
Tested:
After timer expired, check this dbus property:
busctl get-property "xyz.openbmc_project.Watchdog" \
"/xyz/openbmc_project/watchdog/host0" \
"xyz.openbmc_project.State.Watchdog" \
"ExpiredTimerUse"
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Change-Id: I65f15cee5a436e9ffbf5e7094373386f4dfba6b3
diff --git a/watchdog.cpp b/watchdog.cpp
index aed0443..d529746 100644
--- a/watchdog.cpp
+++ b/watchdog.cpp
@@ -101,6 +101,8 @@
action = fallback->action;
}
+ WatchdogInherits::expiredTimerUse(WatchdogInherits::currentTimerUse());
+
auto target = actionTargetMap.find(action);
if (target == actionTargetMap.end())
{