Commit c429886a authored by Graf Yang's avatar Graf Yang Committed by Mike Frysinger

Blackfin: allow NMI watchdog to be used w/RETN as a scratch reg

NMIs are not safe to return from because many anomaly workarounds are
implemented by disabling interrupts.  The NMI obviously violates this
assumption.  Since the NMI watchdog never returns, we don't have to
worry about it clobbering RETN when it is being used as a scratch register
with the exception stack.
Signed-off-by: default avatarGraf Yang <graf.yang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 6ce3e9c2
...@@ -238,7 +238,7 @@ config EARLY_PRINTK ...@@ -238,7 +238,7 @@ config EARLY_PRINTK
config NMI_WATCHDOG config NMI_WATCHDOG
bool "Enable NMI watchdog to help debugging lockup on SMP" bool "Enable NMI watchdog to help debugging lockup on SMP"
default n default n
depends on (SMP && !BFIN_SCRATCH_REG_RETN) depends on SMP
help help
If any CPU in the system does not execute the period local timer If any CPU in the system does not execute the period local timer
interrupt for more than 5 seconds, then the NMI handler dumps debug interrupt for more than 5 seconds, then the NMI handler dumps debug
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment