watchdog: at91sam9_wdt: increase security margin on watchdog counter reset
authorBoris BREZILLON <b.brezillon@overkiz.com>
Sun, 3 Nov 2013 17:52:44 +0000 (18:52 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 28 Jan 2014 20:34:55 +0000 (21:34 +0100)
commitf72fa00f8ab216ee484d61de17ddc84712456c3a
treeca9aff9149e04e11f9669c8e3af8c7516e39fc7d
parenta04c3f01d33f4661424deeff67913699a0910c53
watchdog: at91sam9_wdt: increase security margin on watchdog counter reset

Try to reset the watchdog counter 4 or 2 times more often than actually
requested, to avoid spurious watchdog reset.
If this is not possible because of the min_heartbeat value, reset it at
the min_heartbeat period.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/at91sam9_wdt.c