diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/time.c | 4 | ||||
-rw-r--r-- | arch/mips/oprofile/op_impl.h | 1 | ||||
-rw-r--r-- | arch/mips/oprofile/op_model_mipsxx.c | 5 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index d70ce5ca4802..1f467d534642 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c | |||
@@ -49,13 +49,11 @@ int update_persistent_clock(struct timespec now) | |||
49 | return rtc_mips_set_mmss(now.tv_sec); | 49 | return rtc_mips_set_mmss(now.tv_sec); |
50 | } | 50 | } |
51 | 51 | ||
52 | int null_perf_irq(void) | 52 | static int null_perf_irq(void) |
53 | { | 53 | { |
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | 56 | ||
57 | EXPORT_SYMBOL(null_perf_irq); | ||
58 | |||
59 | int (*perf_irq)(void) = null_perf_irq; | 57 | int (*perf_irq)(void) = null_perf_irq; |
60 | 58 | ||
61 | EXPORT_SYMBOL(perf_irq); | 59 | EXPORT_SYMBOL(perf_irq); |
diff --git a/arch/mips/oprofile/op_impl.h b/arch/mips/oprofile/op_impl.h index fa6b4aae7523..2bfc17c30106 100644 --- a/arch/mips/oprofile/op_impl.h +++ b/arch/mips/oprofile/op_impl.h | |||
@@ -10,7 +10,6 @@ | |||
10 | #ifndef OP_IMPL_H | 10 | #ifndef OP_IMPL_H |
11 | #define OP_IMPL_H 1 | 11 | #define OP_IMPL_H 1 |
12 | 12 | ||
13 | extern int null_perf_irq(void); | ||
14 | extern int (*perf_irq)(void); | 13 | extern int (*perf_irq)(void); |
15 | 14 | ||
16 | /* Per-counter configuration as set via oprofilefs. */ | 15 | /* Per-counter configuration as set via oprofilefs. */ |
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c index ca65469d7e30..da8cbb6899dc 100644 --- a/arch/mips/oprofile/op_model_mipsxx.c +++ b/arch/mips/oprofile/op_model_mipsxx.c | |||
@@ -31,6 +31,8 @@ | |||
31 | 31 | ||
32 | #define M_COUNTER_OVERFLOW (1UL << 31) | 32 | #define M_COUNTER_OVERFLOW (1UL << 31) |
33 | 33 | ||
34 | static int (*save_perf_irq)(void); | ||
35 | |||
34 | #ifdef CONFIG_MIPS_MT_SMP | 36 | #ifdef CONFIG_MIPS_MT_SMP |
35 | static int cpu_has_mipsmt_pertccounters; | 37 | static int cpu_has_mipsmt_pertccounters; |
36 | #define WHAT (M_TC_EN_VPE | \ | 38 | #define WHAT (M_TC_EN_VPE | \ |
@@ -369,6 +371,7 @@ static int __init mipsxx_init(void) | |||
369 | return -ENODEV; | 371 | return -ENODEV; |
370 | } | 372 | } |
371 | 373 | ||
374 | save_perf_irq = perf_irq; | ||
372 | perf_irq = mipsxx_perfcount_handler; | 375 | perf_irq = mipsxx_perfcount_handler; |
373 | 376 | ||
374 | return 0; | 377 | return 0; |
@@ -381,7 +384,7 @@ static void mipsxx_exit(void) | |||
381 | counters = counters_per_cpu_to_total(counters); | 384 | counters = counters_per_cpu_to_total(counters); |
382 | on_each_cpu(reset_counters, (void *)counters, 0, 1); | 385 | on_each_cpu(reset_counters, (void *)counters, 0, 1); |
383 | 386 | ||
384 | perf_irq = null_perf_irq; | 387 | perf_irq = save_perf_irq; |
385 | } | 388 | } |
386 | 389 | ||
387 | struct op_mips_model op_model_mipsxx_ops = { | 390 | struct op_mips_model op_model_mipsxx_ops = { |