summaryrefslogtreecommitdiffstats
path: root/app/watchdog_service.hpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2019-12-05 17:04:29 -0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2020-01-06 23:37:15 +0000
commitebc53cb165ea26aa48f0bbf01d9bce0e4abb0b7d (patch)
treec46a9e07c7da4d5ce962986b9c12337a96c4d30c /app/watchdog_service.hpp
parent4a15685ee852d0b0ee0981d3d1a2a9dd55130835 (diff)
downloadphosphor-host-ipmid-ebc53cb165ea26aa48f0bbf01d9bce0e4abb0b7d.tar.gz
phosphor-host-ipmid-ebc53cb165ea26aa48f0bbf01d9bce0e4abb0b7d.zip
app/watchdog: Always use resetTimeRemaining
The SetWatchdog function currently sets the intervals and then the time remaining on the watchdog. It uses the user provided interval for both values. Recently, the watchdog was extended to allow for the interval to be capped above a certain value to prevent the user from setting watchdogs that are known to be too short. In order to keep the timeRemaining in sync with the value in the watchdog, just use the resetTimeRemaining() function which reads the current interval to set the timeRemaining. Change-Id: I3f15030a85c625fcb1ed8040add03496618a5ece Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'app/watchdog_service.hpp')
-rw-r--r--app/watchdog_service.hpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp
index ed64a3c..141bdb7 100644
--- a/app/watchdog_service.hpp
+++ b/app/watchdog_service.hpp
@@ -92,13 +92,6 @@ class WatchdogService
*/
void setInterval(uint64_t interval);
- /** @brief Sets the value of the timeRemaining property on the host
- * watchdog
- *
- * @param[in] timeRemaining - The new timeRemaining value
- */
- void setTimeRemaining(uint64_t timeRemaining);
-
private:
/** @brief sdbusplus handle */
sdbusplus::bus::bus bus;
OpenPOWER on IntegriCloud