xtensa: make fake NMI configurable
commite462919413547dcfe84e785380d0f47f1359878a
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 27 Nov 2015 13:26:41 +0000 (27 16:26 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 11 Jan 2016 14:31:55 +0000 (11 17:31 +0300)
tree4c80bbd286f9c106d243149ec14634c2e9811a6f
parentafd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
xtensa: make fake NMI configurable

Do not always use fake NMI when safe, provide Kconfig option instead.
Print a warning if fake NMI is chosen in unsafe configuration, but allow
it, because it may work if the user knows that interrupts with
priorities at or above PMM IRQ are not used. Add a check to NMI handler
that BUGs if any of these IRQs fire.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kconfig
arch/xtensa/include/asm/processor.h
arch/xtensa/kernel/traps.c