Skip to content

Commit f8060f5

Browse files
committed
Merge tag 'gic-vic-to-irqchip' of git://sources.calxeda.com/kernel/linux into next/cleanup
From Rob Herring: Initial irqchip init infrastructure and GIC and VIC clean-ups This creates irqchip initialization infrastructure from Thomas Petazzoni. The VIC and GIC irqchip code is moved to drivers/irqchips and adapted to use the new infrastructure. All DT enabled platforms using GIC and VIC are converted over to use the new irqchip_init. * tag 'gic-vic-to-irqchip' of git://sources.calxeda.com/kernel/linux: irqchip: Move ARM vic.h to include/linux/irqchip/arm-vic.h ARM: picoxcell: use common irqchip_init function ARM: spear: use common irqchip_init function irqchip: Move ARM VIC to drivers/irqchip ARM: samsung: remove unused tick.h ARM: remove unneeded vic.h includes ARM: remove mach .handle_irq for VIC users ARM: VIC: set handle_arch_irq in VIC initialization ARM: VIC: shrink down vic.h irqchip: Move ARM gic.h to include/linux/irqchip/arm-gic.h ARM: use common irqchip_init for GIC init irqchip: Move ARM GIC to drivers/irqchip ARM: remove mach .handle_irq for GIC users ARM: GIC: set handle_arch_irq in GIC initialization ARM: GIC: remove direct use of gic_raise_softirq ARM: GIC: remove assembly ifdefs from gic.h ARM: mach-ux500: use SGI0 to wake up the other core arm: add set_handle_irq() to register the parent IRQ controller handler function irqchip: add basic infrastructure irqchip: add to the directories part of the IRQ subsystem in MAINTAINERS Fixed up massive merge conflicts with the timer cleanup due to adjacent changes: Signed-off-by: Olof Johansson <olof@lixom.net> Conflicts: arch/arm/mach-bcm/board_bcm.c arch/arm/mach-cns3xxx/cns3420vb.c arch/arm/mach-ep93xx/adssphere.c arch/arm/mach-ep93xx/edb93xx.c arch/arm/mach-ep93xx/gesbc9312.c arch/arm/mach-ep93xx/micro9.c arch/arm/mach-ep93xx/simone.c arch/arm/mach-ep93xx/snappercl15.c arch/arm/mach-ep93xx/ts72xx.c arch/arm/mach-ep93xx/vision_ep9307.c arch/arm/mach-highbank/highbank.c arch/arm/mach-imx/mach-imx6q.c arch/arm/mach-msm/board-dt-8960.c arch/arm/mach-netx/nxdb500.c arch/arm/mach-netx/nxdkn.c arch/arm/mach-netx/nxeb500hmi.c arch/arm/mach-nomadik/board-nhk8815.c arch/arm/mach-picoxcell/common.c arch/arm/mach-realview/realview_eb.c arch/arm/mach-realview/realview_pb1176.c arch/arm/mach-realview/realview_pb11mp.c arch/arm/mach-realview/realview_pba8.c arch/arm/mach-realview/realview_pbx.c arch/arm/mach-socfpga/socfpga.c arch/arm/mach-spear13xx/spear1310.c arch/arm/mach-spear13xx/spear1340.c arch/arm/mach-spear13xx/spear13xx.c arch/arm/mach-spear3xx/spear300.c arch/arm/mach-spear3xx/spear310.c arch/arm/mach-spear3xx/spear320.c arch/arm/mach-spear3xx/spear3xx.c arch/arm/mach-spear6xx/spear6xx.c arch/arm/mach-tegra/board-dt-tegra20.c arch/arm/mach-tegra/board-dt-tegra30.c arch/arm/mach-u300/core.c arch/arm/mach-ux500/board-mop500.c arch/arm/mach-ux500/cpu-db8500.c arch/arm/mach-versatile/versatile_ab.c arch/arm/mach-versatile/versatile_dt.c arch/arm/mach-versatile/versatile_pb.c arch/arm/mach-vexpress/v2m.c include/asm-generic/vmlinux.lds.h
2 parents 175dbc1 + 9e47b8b commit f8060f5

147 files changed

Lines changed: 339 additions & 606 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4209,6 +4209,7 @@ M: Thomas Gleixner <tglx@linutronix.de>
42094209
S: Maintained
42104210
T: git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core
42114211
F: kernel/irq/
4212+
F: drivers/irqchip/
42124213

42134214
IRQ DOMAINS (IRQ NUMBER MAPPING LIBRARY)
42144215
M: Benjamin Herrenschmidt <benh@kernel.crashing.org>

‎arch/arm/common/Kconfig‎

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
config ARM_GIC
2-
bool
3-
select IRQ_DOMAIN
4-
select MULTI_IRQ_HANDLER
5-
6-
config GIC_NON_BANKED
7-
bool
8-
9-
config ARM_VIC
10-
bool
11-
select IRQ_DOMAIN
12-
select MULTI_IRQ_HANDLER
13-
14-
config ARM_VIC_NR
15-
int
16-
default 4 if ARCH_S5PV210
17-
default 3 if ARCH_S5PC100
18-
default 2
19-
depends on ARM_VIC
20-
help
21-
The maximum number of VICs available in the system, for
22-
power management.
23-
241
config ICST
252
bool
263

‎arch/arm/common/Makefile‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Makefile for the linux kernel.
33
#
44

5-
obj-$(CONFIG_ARM_GIC) += gic.o
6-
obj-$(CONFIG_ARM_VIC) += vic.o
75
obj-$(CONFIG_ICST) += icst.o
86
obj-$(CONFIG_SA1111) += sa1111.o
97
obj-$(CONFIG_PCI_HOST_VIA82C505) += via82c505.o

‎arch/arm/include/asm/mach/irq.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ extern int show_fiq_list(struct seq_file *, int);
2222

2323
#ifdef CONFIG_MULTI_IRQ_HANDLER
2424
extern void (*handle_arch_irq)(struct pt_regs *);
25+
extern void set_handle_irq(void (*handle_irq)(struct pt_regs *));
2526
#endif
2627

2728
/*

‎arch/arm/kernel/irq.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ void __init init_IRQ(void)
117117
machine_desc->init_irq();
118118
}
119119

120+
#ifdef CONFIG_MULTI_IRQ_HANDLER
121+
void __init set_handle_irq(void (*handle_irq)(struct pt_regs *))
122+
{
123+
if (handle_arch_irq)
124+
return;
125+
126+
handle_arch_irq = handle_irq;
127+
}
128+
#endif
129+
120130
#ifdef CONFIG_SPARSE_IRQ
121131
int __init arch_probe_nr_irqs(void)
122132
{

‎arch/arm/kernel/smp.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ static void (*smp_cross_call)(const struct cpumask *, unsigned int);
416416

417417
void __init set_smp_cross_call(void (*fn)(const struct cpumask *, unsigned int))
418418
{
419-
smp_cross_call = fn;
419+
if (!smp_cross_call)
420+
smp_cross_call = fn;
420421
}
421422

422423
void arch_send_call_function_ipi_mask(const struct cpumask *mask)

‎arch/arm/kernel/smp_twd.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
#include <asm/smp_twd.h>
2626
#include <asm/localtimer.h>
27-
#include <asm/hardware/gic.h>
2827

2928
/* set up by the platform code */
3029
static void __iomem *twd_base;

‎arch/arm/mach-bcm/board_bcm.c‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,19 @@
1111
* GNU General Public License for more details.
1212
*/
1313

14-
#include <linux/of_irq.h>
1514
#include <linux/of_platform.h>
1615
#include <linux/init.h>
1716
#include <linux/device.h>
1817
#include <linux/platform_device.h>
18+
#include <linux/irqchip.h>
1919

2020
#include <asm/mach/arch.h>
21-
#include <asm/hardware/gic.h>
22-
2321
#include <asm/mach/time.h>
2422

25-
static const struct of_device_id irq_match[] = {
26-
{.compatible = "arm,cortex-a9-gic", .data = gic_of_init, },
27-
{}
28-
};
29-
3023
static void timer_init(void)
3124
{
3225
}
3326

34-
static void __init init_irq(void)
35-
{
36-
of_irq_init(irq_match);
37-
}
3827

3928
static void __init board_init(void)
4029
{
@@ -45,9 +34,8 @@ static void __init board_init(void)
4534
static const char * const bcm11351_dt_compat[] = { "bcm,bcm11351", NULL, };
4635

4736
DT_MACHINE_START(BCM11351_DT, "Broadcom Application Processor")
48-
.init_irq = init_irq,
37+
.init_irq = irqchip_init,
4938
.init_time = timer_init,
5039
.init_machine = board_init,
5140
.dt_compat = bcm11351_dt_compat,
52-
.handle_irq = gic_handle_irq,
5341
MACHINE_END

‎arch/arm/mach-cns3xxx/cns3420vb.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <linux/usb/ohci_pdriver.h>
2929
#include <asm/setup.h>
3030
#include <asm/mach-types.h>
31-
#include <asm/hardware/gic.h>
3231
#include <asm/mach/arch.h>
3332
#include <asm/mach/map.h>
3433
#include <asm/mach/time.h>
@@ -251,7 +250,6 @@ MACHINE_START(CNS3420VB, "Cavium Networks CNS3420 Validation Board")
251250
.map_io = cns3420_map_io,
252251
.init_irq = cns3xxx_init_irq,
253252
.init_time = cns3xxx_timer_init,
254-
.handle_irq = gic_handle_irq,
255253
.init_machine = cns3420_init,
256254
.restart = cns3xxx_restart,
257255
MACHINE_END

‎arch/arm/mach-cns3xxx/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
#include <linux/interrupt.h>
1313
#include <linux/clockchips.h>
1414
#include <linux/io.h>
15+
#include <linux/irqchip/arm-gic.h>
1516
#include <asm/mach/map.h>
1617
#include <asm/mach/time.h>
1718
#include <asm/mach/irq.h>
18-
#include <asm/hardware/gic.h>
1919
#include <asm/hardware/cache-l2x0.h>
2020
#include <mach/cns3xxx.h>
2121
#include "core.h"

0 commit comments

Comments
 (0)