[WATCHDOG] Fix booke_wdt.c on MPC85xx SMP system's
authorChen Gong <g.chen@freescale.com>
Tue, 29 Apr 2008 08:42:05 +0000 (16:42 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 25 May 2008 09:43:06 +0000 (09:43 +0000)
commitf172ddc61ad7a7c444b2b3e08992a45c76b821f9
tree6d04fd33c45f74737c3d7601b0bdb81c884eb0fc
parent0b36086b5d7c397a128784bed6e332418e500af1
[WATCHDOG] Fix booke_wdt.c on MPC85xx SMP system's

On Book-E SMP systems each core has its own private watchdog.  If only one
watchdog is enabled, when the core that doesn't enable the watchdog is hung,
system can't reset because no watchdog is running on it.  That's bad.  It
means we must enable watchdogs on both cores.

We can use smp_call_function() to send appropriate messages to all the other
cores to enable and update the watchdog.

Signed-off-by: Chen Gong <g.chen@freescale.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/watchdog/booke_wdt.c