kernel_optimize_test/drivers/irqchip
Thomas Gleixner 3a7946eed8 irqchip/bcm7038-l1: Consolidate chained IRQ handler install/remove
Chained irq handlers usually set up handler data as well. We now have
a function to set both under irq_desc->lock. Replace the two calls
with one.

Search and conversion was done with coccinelle:

@@
expression E1, E2, E3;
@@
(
-if (irq_set_handler_data(E1, E2) != 0)
-   BUG();
|
-irq_set_handler_data(E1, E2);
)
-irq_set_chained_handler(E1, E3);
+irq_set_chained_handler_and_data(E1, E3, E2);

@@
expression E1, E2, E3;
@@
(
-if (irq_set_handler_data(E1, E2) != 0)
-   BUG();
...
|
-irq_set_handler_data(E1, E2);
...
)
-irq_set_chained_handler(E1, E3);
+irq_set_chained_handler_and_data(E1, E3, E2);

Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: linux-mips@linux-mips.org
2015-07-11 23:14:25 +02:00
..
exynos-combiner.c irqchip/exynos-combiner: Consolidate chained IRQ handler install/remove 2015-07-11 23:14:25 +02:00
irq-armada-370-xp.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-atmel-aic5.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-atmel-aic-common.c
irq-atmel-aic-common.h
irq-atmel-aic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-bcm2835.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-bcm7038-l1.c irqchip/bcm7038-l1: Consolidate chained IRQ handler install/remove 2015-07-11 23:14:25 +02:00
irq-bcm7120-l2.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-brcmstb-l2.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-clps711x.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-crossbar.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-digicolor.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-dw-apb-ictl.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-gic-common.c irqchip: gic: Simplify gic_configure_irq by using IRQCHIP_SET_TYPE_MASKED 2015-06-05 22:26:33 +02:00
irq-gic-common.h
irq-gic-v2m.c
irq-gic-v3-its.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-gic-v3.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-gic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-hip04.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-imgpdc.c
irq-ingenic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-keystone.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-metag-ext.c
irq-metag.c
irq-mips-cpu.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-mips-gic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-mmp.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-moxart.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-mtk-sysirq.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-mxs.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-nvic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-omap-intc.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-or1k-pic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-orion.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-renesas-h8s.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-renesas-h8300h.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-renesas-intc-irqpin.c irqchip: Constify irq_domain_ops 2015-05-05 10:45:58 +02:00
irq-renesas-irqc.c irqchip: irqc: Remove platform data support 2015-05-05 10:45:59 +02:00
irq-s3c24xx.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-sa11x0.c Merge branch 'sa1100' into for-next 2015-06-12 21:18:13 +01:00
irq-sirfsoc.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-st.c
irq-sun4i.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-sunxi-nmi.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-tb10x.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-tegra.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-versatile-fpga.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-vf610-mscm-ir.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-vic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-vt8500.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-xtensa-mx.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-xtensa-pic.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irq-zevio.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00
irqchip.c
irqchip.h irqchip: Move IRQCHIP_DECLARE macro to include/linux/irqchip.h 2015-07-02 22:34:38 +02:00
Kconfig Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2015-06-27 12:44:34 -07:00
Makefile Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2015-06-27 12:44:34 -07:00
spear-shirq.c irqchip: Prepare for local stub header removal 2015-07-11 23:14:23 +02:00