aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-common
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2009-01-07 10:14:39 -0500
committerBryan Wu <cooloney@kernel.org>2009-01-07 10:14:39 -0500
commit172e65e778ad500da26d59965750966e1ac7be51 (patch)
treecebbc5a924d190f69576657b1f5228087a1e7bea /arch/blackfin/mach-common
parente32f55d9dbffd2ca16e0bb4ea7156b56741b78cd (diff)
Blackfin arch: remove hardware PM code, oprofile not use it
Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-common')
-rw-r--r--arch/blackfin/mach-common/interrupt.S22
-rw-r--r--arch/blackfin/mach-common/irqpanic.c12
2 files changed, 0 insertions, 34 deletions
diff --git a/arch/blackfin/mach-common/interrupt.S b/arch/blackfin/mach-common/interrupt.S
index c1bdd1edc8eb..473df0f7fa78 100644
--- a/arch/blackfin/mach-common/interrupt.S
+++ b/arch/blackfin/mach-common/interrupt.S
@@ -165,16 +165,6 @@ ENTRY(_evt_ivhw)
165 r0 = [p2]; 165 r0 = [p2];
166 [sp + PT_IPEND] = r0; 166 [sp + PT_IPEND] = r0;
167 167
168#ifdef CONFIG_HARDWARE_PM
169 r7 = [sp + PT_SEQSTAT];
170 r7 = r7 >>> 0xe;
171 r6 = 0x1F;
172 r7 = r7 & r6;
173 r5 = 0x12;
174 cc = r7 == r5;
175 if cc jump .Lcall_do_ovf; /* deal with performance counter overflow */
176#endif
177
178 /* set the EXCAUSE to HWERR for trap_c */ 168 /* set the EXCAUSE to HWERR for trap_c */
179 r0 = [sp + PT_SEQSTAT]; 169 r0 = [sp + PT_SEQSTAT];
180 R1.L = LO(VEC_HWERR); 170 R1.L = LO(VEC_HWERR);
@@ -200,18 +190,6 @@ ENTRY(_evt_ivhw)
200.Lcommon_restore_all_sys: 190.Lcommon_restore_all_sys:
201 RESTORE_ALL_SYS 191 RESTORE_ALL_SYS
202 rti; 192 rti;
203
204#ifdef CONFIG_HARDWARE_PM
205.Lcall_do_ovf:
206
207 R0 = SP;
208 SP += -12;
209 call _pm_overflow;
210 SP += 12;
211
212 jump .Lcommon_restore_all_sys;
213#endif
214
215ENDPROC(_evt_ivhw) 193ENDPROC(_evt_ivhw)
216 194
217/* Interrupt routine for evt2 (NMI). 195/* Interrupt routine for evt2 (NMI).
diff --git a/arch/blackfin/mach-common/irqpanic.c b/arch/blackfin/mach-common/irqpanic.c
index 7b69413c1556..05004df0f78b 100644
--- a/arch/blackfin/mach-common/irqpanic.c
+++ b/arch/blackfin/mach-common/irqpanic.c
@@ -33,8 +33,6 @@
33#include <asm/traps.h> 33#include <asm/traps.h>
34#include <asm/blackfin.h> 34#include <asm/blackfin.h>
35 35
36#include "../oprofile/op_blackfin.h"
37
38#ifdef CONFIG_DEBUG_ICACHE_CHECK 36#ifdef CONFIG_DEBUG_ICACHE_CHECK
39#define L1_ICACHE_START 0xffa10000 37#define L1_ICACHE_START 0xffa10000
40#define L1_ICACHE_END 0xffa13fff 38#define L1_ICACHE_END 0xffa13fff
@@ -134,13 +132,3 @@ asmlinkage void irq_panic(int reason, struct pt_regs *regs)
134#endif 132#endif
135 133
136} 134}
137
138#ifdef CONFIG_HARDWARE_PM
139/*
140 * call the handler of Performance overflow
141 */
142asmlinkage void pm_overflow(struct pt_regs *regs)
143{
144 pm_overflow_handler(regs);
145}
146#endif