]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/83xx: handle machine check caused by watchdog timer
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 10 Dec 2018 11:41:29 +0000 (11:41 +0000)
committerScott Wood <oss@buserror.net>
Sat, 22 Dec 2018 02:56:41 +0000 (20:56 -0600)
commit0678385cab08f0b53c32867387245f3009eb4efc
tree3368ae52860c4090f83eb991206ed4b4bc2098e7
parent534c6b32827ca80303f16a0bf3028cd3a9eb0f01
powerpc/83xx: handle machine check caused by watchdog timer

When the watchdog timer is set in interrupt mode, it causes a
machine check when it times out. The purpose of this mode is to
ease debugging, not to crash the kernel and reboot the machine.

This patch implements a special handling for that, in order to not
crash the kernel if the watchdog times out while in interrupt or
within the idle task.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[scottwood: added missing #include]
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/include/asm/cputable.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/cputable.c
arch/powerpc/platforms/83xx/misc.c