[WATCHDOG] mv64x60_wdt: Rework the timeout register manipulation
authorDale Farnsworth <dale@farnsworth.org>
Tue, 24 Jul 2007 18:31:25 +0000 (11:31 -0700)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 24 Jul 2007 21:16:28 +0000 (21:16 +0000)
Consolidate the timeout config register modification into a single
function.  Also, use the enabled flag in the config register to
determine whether the timer is enabled instead of a separately
maintained flag, MV64x60_WDOG_FLAG_ENABLED.

Add spinlock protection around enabling/disabling the watchdog timer.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

No differences found