linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: ux500: Initialize irq affinity
@ 2012-01-20 12:59 Per Fransson
  2012-01-20 13:03 ` Russell King - ARM Linux
  0 siblings, 1 reply; 13+ messages in thread
From: Per Fransson @ 2012-01-20 12:59 UTC (permalink / raw)
  To: linux-arm-kernel

Use irq_set_affinity() to initialize the kernel view of irq affinity
when programming the GIC registers.

Signed-off-by: Per Fransson <per.xx.fransson@stericsson.com>
---
 arch/arm/mach-ux500/cpu.c                      |    7 +++++++
 arch/arm/mach-ux500/include/mach/irqs-db8500.h |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c
index f418574..164347f 100644
--- a/arch/arm/mach-ux500/cpu.c
+++ b/arch/arm/mach-ux500/cpu.c
@@ -28,6 +28,7 @@ void __init ux500_init_irq(void)
 {
 	void __iomem *dist_base;
 	void __iomem *cpu_base;
+	int i;
 
 	if (cpu_is_u5500()) {
 		dist_base = __io_address(U5500_GIC_DIST_BASE);
@@ -40,6 +41,12 @@ void __init ux500_init_irq(void)
 
 	gic_init(0, 29, dist_base, cpu_base);
 
+	for (i = IRQ_SHPI_START; i <= IRQ_SHPI_END; i++) {
+		if (i >= IRQ_MODEM_START && i <= IRQ_MODEM_END)
+			continue;
+		irq_set_affinity(i, cpumask_of(0));
+	}
+
 	/*
 	 * Init clocks here so that they are available for system timer
 	 * initialization.
diff --git a/arch/arm/mach-ux500/include/mach/irqs-db8500.h b/arch/arm/mach-ux500/include/mach/irqs-db8500.h
index 68bc149..3279b0e 100644
--- a/arch/arm/mach-ux500/include/mach/irqs-db8500.h
+++ b/arch/arm/mach-ux500/include/mach/irqs-db8500.h
@@ -8,6 +8,10 @@
 #ifndef __MACH_IRQS_DB8500_H
 #define __MACH_IRQS_DB8500_H
 
+#define IRQ_SHPI_END (IRQ_SHPI_START + 127)
+#define IRQ_MODEM_START (IRQ_SHPI_START + 64)
+#define IRQ_MODEM_END (IRQ_SHPI_START + 83)
+
 #define IRQ_DB8500_MTU0			(IRQ_SHPI_START + 4)
 #define IRQ_DB8500_SPI2			(IRQ_SHPI_START + 6)
 #define IRQ_DB8500_PMU			(IRQ_SHPI_START + 7)
-- 
1.7.8.3

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-01-24 22:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-20 12:59 [PATCH] ARM: ux500: Initialize irq affinity Per Fransson
2012-01-20 13:03 ` Russell King - ARM Linux
2012-01-20 15:45   ` Linus Walleij
2012-01-20 16:03     ` Marc Zyngier
2012-01-20 16:08     ` Will Deacon
2012-01-20 17:44     ` Russell King - ARM Linux
2012-01-20 21:28       ` Per Fransson
2012-01-22 12:54       ` Will Deacon
2012-01-22 15:27         ` Russell King - ARM Linux
2012-01-24 11:04           ` Will Deacon
2012-01-24 22:00             ` Linus Walleij
2012-01-20 17:50     ` Russell King - ARM Linux
2012-01-20 17:56       ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).