ARM: vic: MULTI_IRQ_HANDLER handler
authorJamie Iles <jamie@jamieiles.com>
Wed, 28 Sep 2011 08:40:11 +0000 (09:40 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 15 Nov 2011 18:14:03 +0000 (18:14 +0000)
commit1558368eb5d67a41d4199db32d3f5858660b44cf
tree9c83d2577415fd04db5617ffca994ff26bce8f98
parentf9b28ccbc7139af656147dcbba9c5425d5706b7d
ARM: vic: MULTI_IRQ_HANDLER handler

Add a handler for the VIC that is suitable for MULTI_IRQ_HANDLER
platforms.  This can replace the ASM entry macros for platforms that use
the VIC.

v4: - rebase ontop of move __exception and friends to
  asm/exception.h
- rework polling loop to handle as many irqs as possible in one go
v3: - simplify irq handling loop as suggested by Grant
- service interrupts from msb->lsb order
v2: - allow the handler be used for !CONFIG_OF
- use irq_domain_to_irq()

Cc: Rob Herring <robherring2@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
arch/arm/common/vic.c
arch/arm/include/asm/hardware/vic.h