Skip to content

Commit

Permalink
ARM: exynos: prepare for sparse IRQ
Browse files Browse the repository at this point in the history
When we enable CONFIG_SPARSE_IRQ, we have to set the value of NR_IRQS in
the machine_desc for legacy IRQ domains, and any file referring to the
number of interrupts or a specific number must include the mach/irqs.h
header file explicitly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed Apr 19, 2013
1 parent b4cf27f commit 7ba8022
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/mach-exynos/dev-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <asm/mach/irq.h>
#include <mach/hardware.h>
#include <mach/map.h>
#include <mach/irqs.h>

#include <plat/devs.h>

Expand Down
5 changes: 4 additions & 1 deletion arch/arm/mach-exynos/include/mach/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@
#define IRQ_TIMER_BASE (IRQ_GPIO_END + 64)

/* Set the default NR_IRQS */
#define EXYNOS_NR_IRQS (IRQ_TIMER_BASE + IRQ_TIMER_COUNT)

#define NR_IRQS (IRQ_TIMER_BASE + IRQ_TIMER_COUNT)
#ifndef CONFIG_SPARSE_IRQ
#define NR_IRQS EXYNOS_NR_IRQS
#endif

#endif /* __ASM_ARCH_IRQS_H */
1 change: 1 addition & 0 deletions arch/arm/mach-exynos/mach-armlex4210.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <plat/regs-srom.h>
#include <plat/sdhci.h>

#include <mach/irqs.h>
#include <mach/map.h>

#include "common.h"
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-exynos/mach-nuri.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <plat/fimc-core.h>
#include <plat/camport.h>

#include <mach/irqs.h>
#include <mach/map.h>

#include "common.h"
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-exynos/mach-origen.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <plat/hdmi.h>

#include <mach/map.h>
#include <mach/irqs.h>

#include <drm/exynos_drm.h>
#include "common.h"
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-exynos/mach-smdk4x12.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <plat/regs-serial.h>
#include <plat/sdhci.h>

#include <mach/irqs.h>
#include <mach/map.h>

#include <drm/exynos_drm.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-exynos/mach-smdkv310.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <plat/clock.h>
#include <plat/hdmi.h>

#include <mach/irqs.h>
#include <mach/map.h>

#include <drm/exynos_drm.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/plat-samsung/irq-vic-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/io.h>

#include <mach/map.h>
#include <mach/irqs.h>
#include <plat/cpu.h>
#include <plat/irq-vic-timer.h>
#include <plat/regs-timer.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/plat-samsung/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <plat/regs-serial.h>
#include <mach/regs-clock.h>
#include <mach/regs-irq.h>
#include <mach/irqs.h>
#include <asm/irq.h>

#include <plat/pm.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/plat-samsung/s5p-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/io.h>
#include <linux/irqchip/arm-vic.h>

#include <mach/irqs.h>
#include <mach/map.h>
#include <plat/regs-timer.h>
#include <plat/cpu.h>
Expand Down

0 comments on commit 7ba8022

Please sign in to comment.