You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.4 KiB
54 lines
1.4 KiB
13 years ago
|
From e0bd3f1b16fbce1f0f7900a0dd624f9dc8a47f78 Mon Sep 17 00:00:00 2001
|
||
13 years ago
|
From: John Crispin <blogic@openwrt.org>
|
||
|
Date: Wed, 24 Aug 2011 13:28:55 +0200
|
||
13 years ago
|
Subject: [PATCH 18/70] MIPS: lantiq: enable oprofile support on lantiq
|
||
|
targets
|
||
13 years ago
|
|
||
13 years ago
|
This patch sets the performance counters irq and HAVE_OPROFILE flag for Lantiq
|
||
|
SoCs.
|
||
13 years ago
|
|
||
|
Signed-off-by: John Crispin <blogic@openwrt.org>
|
||
|
---
|
||
|
arch/mips/Kconfig | 1 +
|
||
|
arch/mips/lantiq/irq.c | 5 +++++
|
||
|
2 files changed, 6 insertions(+), 0 deletions(-)
|
||
|
|
||
13 years ago
|
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
|
||
|
index d46f1da..c1ceadb 100644
|
||
13 years ago
|
--- a/arch/mips/Kconfig
|
||
|
+++ b/arch/mips/Kconfig
|
||
13 years ago
|
@@ -226,6 +226,7 @@ config LANTIQ
|
||
13 years ago
|
select SWAP_IO_SPACE
|
||
|
select BOOT_RAW
|
||
|
select HAVE_CLK
|
||
|
+ select HAVE_OPROFILE
|
||
|
select MIPS_MACHINE
|
||
|
|
||
|
config LASAT
|
||
13 years ago
|
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c
|
||
|
index 17c057f..0b2ed87 100644
|
||
13 years ago
|
--- 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
|
||
|
*/
|
||
|
@@ -318,6 +321,8 @@ 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
|
||
|
+
|
||
|
+ cp0_perfcount_irq = LTQ_PERF_IRQ;
|
||
|
}
|
||
|
|
||
|
unsigned int __cpuinit get_c0_compare_int(void)
|
||
13 years ago
|
--
|
||
|
1.7.7.1
|
||
|
|