]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit1e28cba4af4a4a2bdb641e20722b9cd0d7c342c0
tree6d04fd33c45f74737c3d7601b0bdb81c884eb0fc
parent2e5995ad975cc9e54a1f8c7ff74959d74b9e58c2
[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