In kernel tickle mode, tickle once immediately upon setting the mode.

Works around a peculiarity where the first watchdog period (only) on the
BeagleBone is only half as long as expected.
This commit is contained in:
riz 2012-12-29 04:59:21 +00:00
parent db7d489b44
commit 6b151fea8c
1 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,8 @@ omapwdt32k_setmode(struct sysmon_wdog *smw)
sc->sc_smw.smw_period = smw->smw_period;
omapwdt32k_set_timeout(sc->sc_smw.smw_period);
omapwdt32k_enable(1);
if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_KTICKLE)
omapwdt32k_tickle(smw);
}
return error;
}