diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-06 05:38:14 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-14 14:21:52 -0500 |
commit | ac61d143ffe2a6db4d4bcf47c21a5159d6a1b644 (patch) | |
tree | a0a5f36bc862c2163d4cc37333f46eb0257b3140 /arch/arm/common | |
parent | 7627dc802a98aebebc6a34e5b6558ea4717c968c (diff) |
ARM: GIC: move enablement of PPI interrupts to gic.c
Avoid adding nasty genirq-specific code to local timers to enable PPI
interrupts. Instead, provide a gic function to do this.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r-- | arch/arm/common/gic.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index c7155bdeb815..0b89ef001330 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c | |||
@@ -331,6 +331,16 @@ void __cpuinit gic_secondary_init(unsigned int gic_nr) | |||
331 | gic_cpu_init(&gic_data[gic_nr]); | 331 | gic_cpu_init(&gic_data[gic_nr]); |
332 | } | 332 | } |
333 | 333 | ||
334 | void __cpuinit gic_enable_ppi(unsigned int irq) | ||
335 | { | ||
336 | unsigned long flags; | ||
337 | |||
338 | local_irq_save(flags); | ||
339 | irq_to_desc(irq)->status |= IRQ_NOPROBE; | ||
340 | gic_unmask_irq(irq); | ||
341 | local_irq_restore(flags); | ||
342 | } | ||
343 | |||
334 | #ifdef CONFIG_SMP | 344 | #ifdef CONFIG_SMP |
335 | void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) | 345 | void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) |
336 | { | 346 | { |