]> git.baikalelectronics.ru Git - kernel.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)
commit62b0c6ef66f4ffd12233f696de7224237171cb03
tree19c99c7c3ec245de6610cf1e0e6f8cf9023a5e98
parent71044ff54a2d17b11ce81b350017806cb74c2739
[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