Skip to contentSkip to conversation

MIPS: lantiq: fix cp0_perfcount_irq mapping

PATCH New John Crispin 1 participant 1 message Jan 29, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: lantiq: fix cp0_perfcount_irq mapping

The introduction of the OF support broken the cp0_perfcount_irq mapping. This resulted in oprofile not working anymore.

Offending commit is :

commit 3645da0276ae9f6938ff29b13904b803ecb68424

Author: John Crispin <[email protected]>
Date:   Tue Apr 17 10:18:32 2012 +0200

OF: MIPS: lantiq: implement irq_domain support

---
 arch/mips/lantiq/irq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/lantiq/irq.c +1 -1
index 6f84009..5119487 100644
@@ -449,7 +449,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent)
 #endif
 
 	/* tell oprofile which irq to use */
-	cp0_perfcount_irq = LTQ_PERF_IRQ;
+	cp0_perfcount_irq = irq_create_mapping(ltq_domain, LTQ_PERF_IRQ);
 
 	/*
 	 * if the timer irq is not one of the mips irqs we need to
Signature · 1 line
1.7.10.4