
28 Oct
2009
28 Oct
'09
2:05 p.m.
On Wed, 28 Oct 2009 05:57:34 -0700 Prafulla Wadaskar prafulla@marvell.com wrote:
Sure, but WATCHDOG_RESET() will be called anyway (and probably before my code), so it will be enabled anyhow in that case. My point is that sometimes you don't want the watchdog to get started directly, hence the function to enable it.
That is also valid point, This will be the generic need for all architectures. Lets introduce WATCHDOG_INIT() as new generic interface.
Yes, something like that. What I was thinking was a
void watchdog_enable(unsigned int timeout_secs);
void watchdog_disable(void);
and a command-line interface to go with these. I'm cooking up a patch with this.
// Simon