xtensa: clean up do_interrupt/do_IRQ
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 16 Oct 2013 22:42:23 +0000 (02:42 +0400)
committerChris Zankel <chris@zankel.net>
Tue, 14 Jan 2014 18:19:57 +0000 (10:19 -0800)
commit996232393bcdfff49de31e1bc1c431fd8bce9ccb
tree96cb815dfb70ff3a9c8b07afdbc5f0b3a71fdb95
parentcbd1de2e8e46207cead11034f92ea8a018b11189
xtensa: clean up do_interrupt/do_IRQ

- set up irq registers and call irq_enter/irq_exit once for each kernel
  entry due to interrupt;
- don't attempt to clear current IRQ in the do_interrupt, IRQ handler
  will take care of it;
- find pending interrupt with highest priority before every ISR
  invocation.

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