]> 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)
commitb87baf869bebcaeb4fc53747a6697c9bbc85a10b
treeff0b0fc50790d6ae5a37c5317e67523985f87bbd
parentc07183499e11be0c0bf405f7c7f23f54e7f4c0e4
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
  7c35c01 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