| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH V2 09/14] MIPS: lantiq: enable oprofile support on lantiq targets |
| From: | John Crispin <blogic@openwrt.org> |
| Date: | Wed, 2 May 2012 14:27:37 +0200 |
| Cc: | "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>, John Crispin <blogic@openwrt.org> |
| In-reply-to: | <1335961659-21358-1-git-send-email-blogic@openwrt.org> |
| References: | <1335961659-21358-1-git-send-email-blogic@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
This patch sets the performance counters irq on Lantiq SoCs.
Signed-off-by: John Crispin <blogic@openwrt.org>
---
Changes in V2
* HAVE_OPROFILE was redundant
arch/mips/lantiq/irq.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
index b6b1c72..bfd4ad1 100644
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -40,6 +40,9 @@
#define MAX_EIU 6
+/* the performance counter */
+#define LTQ_PERF_IRQ (INT_NUM_IM4_IRL0 + 31)
+
/* irqs generated by device attached to the EBU need to be acked in
* a special manner
*/
@@ -316,6 +319,9 @@ void __init arch_init_irq(void)
set_c0_status(IE_SW0 | IE_SW1 | IE_IRQ0 | IE_IRQ1 |
IE_IRQ2 | IE_IRQ3 | IE_IRQ4 | IE_IRQ5);
#endif
+
+ /* tell oprofile which irq to use */
+ cp0_perfcount_irq = LTQ_PERF_IRQ;
}
unsigned int __cpuinit get_c0_compare_int(void)
--
1.7.9.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH V2 08/14] MIPS: lantiq: clear all irqs properly on boot, John Crispin |
|---|---|
| Next by Date: | [PATCH V2 11/14] MIPS: lantiq: fix early printk, John Crispin |
| Previous by Thread: | [PATCH V2 08/14] MIPS: lantiq: clear all irqs properly on boot, John Crispin |
| Next by Thread: | [PATCH V2 11/14] MIPS: lantiq: fix early printk, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |