[PATCH skeleton] Fix host watchdog timer taking double the time to expire

OpenBMC Patches openbmc-patches at stwcx.xyz
Wed Mar 2 07:10:44 AEDT 2016


The g_timeout_add() glib interface does not spawn immediately after it's called
but instead it runs for the first time after the specified interval.

Therefore need to set the watchdog property to 0 instead of 1 when the watchdog starts, and let
subsequent watchdog refresh calls set it to 1, otherwise the watchdog timer expires in double the time that was specified: it waits the interval time and sees it's 1 then waits a 2nd round to see it's 0.

https://github.com/openbmc/skeleton/pull/51

Adriana Kobylak (1):
  Fix host watchdog timer taking double the time to expire

 objects/host_watchdog_obj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.1




More information about the openbmc mailing list