ARM: 6806/1: irq: introduce entry and exit functions for chained handlers
authorWill Deacon <[email protected]>
Mon, 14 Mar 2011 13:00:30 +0000 (14:00 +0100)
committerRussell King <[email protected]>
Tue, 15 Mar 2011 09:42:28 +0000 (09:42 +0000)
commit10a8c3839810ac9af1aec836d61b92e7a879f5fa
treedbb67f0ed37857b92ee0098791d4d6e3d2a04d46
parent6f685c5cdd29649cf8cc8f57c72791159f936e07
ARM: 6806/1: irq: introduce entry and exit functions for chained handlers

Some chained IRQ handlers are written to cope with primary chips of
potentially different flow types. Whether this a sensible thing to do
is a point of contention.

This patch introduces entry/exit functions for chained handlers which
infer the flow type of the primary chip as fasteoi or level-type by
checking whether or not the ->irq_eoi function pointer is present and
calling back to the primary chip as necessary. Other methods of flow
control are not considered.

Acked-by: Thomas Gleixner <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/include/asm/mach/irq.h