summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong Li <yong.b.li@linux.intel.com>2019-03-20 17:08:24 +0800
committerYong Li <yong.b.li@linux.intel.com>2019-03-20 17:09:11 +0800
commit50ae4b152ba8aaecd1a09634d2df7036f14e03ed (patch)
treee17123bad54361125b629c141320e3ca013c1728
parentb93377104292de0f94087c0cbb79d4d6d8516b84 (diff)
downloadphosphor-watchdog-50ae4b152ba8aaecd1a09634d2df7036f14e03ed.tar.gz
phosphor-watchdog-50ae4b152ba8aaecd1a09634d2df7036f14e03ed.zip
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
-rw-r--r--watchdog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/watchdog.cpp b/watchdog.cpp
index aed0443..d529746 100644
--- a/watchdog.cpp
+++ b/watchdog.cpp
@@ -101,6 +101,8 @@ void Watchdog::timeOutHandler()
action = fallback->action;
}
+ WatchdogInherits::expiredTimerUse(WatchdogInherits::currentTimerUse());
+
auto target = actionTargetMap.find(action);
if (target == actionTargetMap.end())
{
OpenPOWER on IntegriCloud