From 4b017a9b8728d19880d8d0de9cb994d7c0273769 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 27 Apr 2018 14:31:08 -0700 Subject: watchdog: Use ResetTimeRemaining for wd_reset Using this helper method reduces the number of dbus calls made during each watchdog reset. Change-Id: I373db3babe03e05fca33eb4dbbbc7c07f95a39ea Signed-off-by: William A. Kennington III --- app/watchdog_service.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/watchdog_service.hpp') diff --git a/app/watchdog_service.hpp b/app/watchdog_service.hpp index e93b7f3..ad92213 100644 --- a/app/watchdog_service.hpp +++ b/app/watchdog_service.hpp @@ -15,6 +15,14 @@ class WatchdogService { using Action = sdbusplus::xyz::openbmc_project::State::server::Watchdog::Action; + /** @brief Resets the time remaining on the watchdog. + * Equivalent to setTimeRemaining(getInterval()). + * Optionally enables the watchdog. + * + * @param[in] enableWatchdog - Should the call also enable the watchdog + */ + void resetTimeRemaining(bool enableWatchdog); + /** @brief Contains a copy of the properties enumerated by the * watchdog service. */ -- cgit v1.2.1