]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
[WATCHDOG] fix book E watchdog to take WDIOC_SETTIMEOUT arg in seconds
authorChris Friesen <cfriesen@nortel.com>
Wed, 12 Aug 2009 18:02:46 +0000 (12:02 -0600)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 18 Sep 2009 08:37:21 +0000 (08:37 +0000)
commitdcfb748422d01245b6e89c94d85fcdb3c71a56a0
tree19c99c7c3ec245de6610cf1e0e6f8cf9023a5e98
parent9fd868f440c3d722199a14200b2a64a0a5e70221
[WATCHDOG] fix book E watchdog to take WDIOC_SETTIMEOUT arg in seconds

The WDIOC_SETTIMEOUT argument is supposed to be a "seconds" value.
However, the book E wdt currently treats it as a "period" which is
interpreted in a board-specific way.

This patch allows the user to pass in a "seconds" value and the driver
will set the smallest timeout that is at least as large as specified
by the user.  It's been tested on e500 hardware and works as
expected.

The patch only modifies the CONFIG_FSL_BOOKE case, the CONFIG_4xx case
is left unmodified as I don't have any hardware to test it on.

Signed-off-by: Chris Friesen <cfriesen@nortel.com>
Cc: Kumar Gala <galak@gate.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/booke_wdt.c