summaryrefslogtreecommitdiffstats
path: root/app/watchdog_service.hpp
diff options
context:
space:
mode:
authorYong Li <yong.b.li@linux.intel.com>2019-01-11 17:36:17 +0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-02-12 21:14:25 +0000
commit118907ed5aff8ad5037f98bf8699c5105781e4dd (patch)
treef4dd82d8a48d84ab44329a805ad6adf5cc835f8a /app/watchdog_service.hpp
parent2c2af2ca713f56b117ad2c8c1a1f0e370b7c2d9c (diff)
downloadphosphor-host-ipmid-118907ed5aff8ad5037f98bf8699c5105781e4dd.tar.gz
phosphor-host-ipmid-118907ed5aff8ad5037f98bf8699c5105781e4dd.zip
Add timer use field support in watchdog command
Tested: ipmitool raw 0x06 0x24 1 0 0 0 0 0 ipmitool mc watchdog get Change-Id: Iaffd6622821d33183a52f54a4e2e52a36aa17dde Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Diffstat (limited to 'app/watchdog_service.hpp')
-rw-r--r--app/watchdog_service.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp
index 8056fb7..75afc1e 100644
--- a/app/watchdog_service.hpp
+++ b/app/watchdog_service.hpp
@@ -16,6 +16,8 @@ class WatchdogService
using Action =
sdbusplus::xyz::openbmc_project::State::server::Watchdog::Action;
+ using TimerUse =
+ sdbusplus::xyz::openbmc_project::State::server::Watchdog::TimerUse;
/** @brief Resets the time remaining on the watchdog.
* Equivalent to setTimeRemaining(getInterval()).
@@ -33,6 +35,7 @@ class WatchdogService
bool initialized;
bool enabled;
Action expireAction;
+ TimerUse timerUse;
uint64_t interval;
uint64_t timeRemaining;
};
@@ -70,6 +73,12 @@ class WatchdogService
*/
void setExpireAction(Action expireAction);
+ /** @brief Sets the value of the timerUse property on the host watchdog
+ *
+ * @param[in] timerUse - The new timerUse value
+ */
+ void setTimerUse(TimerUse timerUse);
+
/** @brief Sets the value of the interval property on the host watchdog
*
* @param[in] interval - The new interval value
OpenPOWER on IntegriCloud