aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-05-02 06:27:37 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-05-15 11:49:21 -0400
commit59c115798430f644b43123250ae4e1d820c3c18d (patch)
tree37cd97303ee4e8315bd04e176d00aa1a32ffa902 /arch
parent16f70b561dd897dc324b726ebc94e0c87db26f61 (diff)
MIPS: lantiq: enable oprofile support on lantiq targets
This patch sets the performance counters irq on Lantiq SoCs. Signed-off-by: John Crispin <blogic@openwrt.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3720/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/lantiq/irq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index b6b1c7260c5c..bfd4ad180aac 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -40,6 +40,9 @@
40 40
41#define MAX_EIU 6 41#define MAX_EIU 6
42 42
43/* the performance counter */
44#define LTQ_PERF_IRQ (INT_NUM_IM4_IRL0 + 31)
45
43/* irqs generated by device attached to the EBU need to be acked in 46/* irqs generated by device attached to the EBU need to be acked in
44 * a special manner 47 * a special manner
45 */ 48 */
@@ -316,6 +319,9 @@ void __init arch_init_irq(void)
316 set_c0_status(IE_SW0 | IE_SW1 | IE_IRQ0 | IE_IRQ1 | 319 set_c0_status(IE_SW0 | IE_SW1 | IE_IRQ0 | IE_IRQ1 |
317 IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5); 320 IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5);
318#endif 321#endif
322
323 /* tell oprofile which irq to use */
324 cp0_perfcount_irq = LTQ_PERF_IRQ;
319} 325}
320 326
321unsigned int __cpuinit get_c0_compare_int(void) 327unsigned int __cpuinit get_c0_compare_int(void)