Thread (7 messages) 7 messages, 5 authors, 2011-09-29

[PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

From: Jamie Iles <hidden>
Date: 2011-09-29 15:13:02
Also in: linux-devicetree

Possibly related (same subject, not in this thread)

On Thu, Sep 29, 2011 at 05:03:34PM +0200, Zoltan Devai wrote:
2011/9/28 Jamie Iles [off-list ref]:
quoted
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.

v2: ? ? - allow the handler be used for !CONFIG_OF
? ? ? ?- use irq_domain_to_irq()

Cc: Rob Herring <redacted>
Cc: Grant Likely <redacted>
Signed-off-by: Jamie Iles <redacted>
---
?arch/arm/common/vic.c ? ? ? ? ? ? ? | ? 29 +++++++++++++++++++++++++++++
?arch/arm/include/asm/hardware/vic.h | ? ?4 ++++
?2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/arch/arm/common/vic.c b/arch/arm/common/vic.c
index 3f9c8f2..71adced 100644
--- a/arch/arm/common/vic.c
+++ b/arch/arm/common/vic.c
quoted
+asmlinkage void __exception_irq_entry vic_handle_irq(struct pt_regs *regs)
+{
+ ? ? ? int i;
+
+ ? ? ? for (i = 0; i < vic_id; ++i)
+ ? ? ? ? ? ? ? vic_single_handle_irq(&vic_devices[i], regs);
+}
+#endif /* CONFIG_MULTI_IRQ_HANDLER */
__exception_irq_entry doesn't compile with CONFIG_FUNCTION_GRAPH_TRACER enabled.
Either this file, or arch/arm/include/asm/system.h needs an #include
<linux/ftrace.h>
Thanks Zoltan, I'm just sending a patch now!

Jamie
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help