xtensa: disable IRQs while IRQ handler is running
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 25 Mar 2013 22:51:43 +0000 (02:51 +0400)
committerChris Zankel <chris@zankel.net>
Thu, 9 May 2013 08:07:11 +0000 (01:07 -0700)
commit895666a9920f19bc256340aaf58d01da6e677a16
treeff0b0fc50790d6ae5a37c5317e67523985f87bbd
parent8f371c7521545ee120364466514a4a2fc156c64f
xtensa: disable IRQs while IRQ handler is running

IRQ handlers are expected to run with IRQs disabled.
See e.g. http://lwn.net/Articles/380931/ for a longer story.

This was overlooked in the commit
  2d1c645 xtensa: dispatch medium-priority interrupts
Revert to old behavior and simplify interrupt entry and exit code.
Interrupt handler still honours IRQ priority.

do_notify_resume/schedule must be called with interrupts enabled, enable
interrupts if we return from user exception.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/traps.c
arch/xtensa/kernel/vectors.S