]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07e58c48cf05b3ffbd22971e8cfb2778de4d97cc
treeff0b0fc50790d6ae5a37c5317e67523985f87bbd
parent26107ac2a32c851739491883f4e7549ca2d1ef03
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
  e666823 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