diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-07-23 12:59:52 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-08-03 03:25:18 -0400 |
commit | 0cb0985f57783c2f3c6c8ffe7e7665e80c56bd92 (patch) | |
tree | 597a1674f4afcfcaac8767b1b6cca69db0b8ea2e | |
parent | 1e77863a51698c4319587df34171bd823691a66a (diff) |
MIPS: Export get_c0_perfcount_int()
get_c0_perfcount_int is tested from oprofile code. If oprofile is
compiled as module, get_c0_perfcount_int needs to be exported, otherwise
it cannot be resolved.
Fixes: a669efc4a3b4 ("MIPS: Add hook to get C0 performance counter interrupt")
Cc: stable@vger.kernel.org # v3.19+
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: abrestic@chromium.org
Patchwork: https://patchwork.linux-mips.org/patch/10763/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/ath79/setup.c | 1 | ||||
-rw-r--r-- | arch/mips/lantiq/irq.c | 1 | ||||
-rw-r--r-- | arch/mips/mti-malta/malta-time.c | 1 | ||||
-rw-r--r-- | arch/mips/mti-sead3/sead3-time.c | 1 | ||||
-rw-r--r-- | arch/mips/pistachio/time.c | 1 | ||||
-rw-r--r-- | arch/mips/ralink/irq.c | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c index 01a644f174dd..1ba21204ebe0 100644 --- a/arch/mips/ath79/setup.c +++ b/arch/mips/ath79/setup.c | |||
@@ -190,6 +190,7 @@ int get_c0_perfcount_int(void) | |||
190 | { | 190 | { |
191 | return ATH79_MISC_IRQ(5); | 191 | return ATH79_MISC_IRQ(5); |
192 | } | 192 | } |
193 | EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||
193 | 194 | ||
194 | unsigned int get_c0_compare_int(void) | 195 | unsigned int get_c0_compare_int(void) |
195 | { | 196 | { |
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index be18648cb8c8..2c218c3bbca5 100644 --- a/arch/mips/lantiq/irq.c +++ b/arch/mips/lantiq/irq.c | |||
@@ -466,6 +466,7 @@ int get_c0_perfcount_int(void) | |||
466 | { | 466 | { |
467 | return ltq_perfcount_irq; | 467 | return ltq_perfcount_irq; |
468 | } | 468 | } |
469 | EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||
469 | 470 | ||
470 | unsigned int get_c0_compare_int(void) | 471 | unsigned int get_c0_compare_int(void) |
471 | { | 472 | { |
diff --git a/arch/mips/mti-malta/malta-time.c b/arch/mips/mti-malta/malta-time.c index c1dc730471e0..b7bf721eabf5 100644 --- a/arch/mips/mti-malta/malta-time.c +++ b/arch/mips/mti-malta/malta-time.c | |||
@@ -154,6 +154,7 @@ int get_c0_perfcount_int(void) | |||
154 | 154 | ||
155 | return mips_cpu_perf_irq; | 155 | return mips_cpu_perf_irq; |
156 | } | 156 | } |
157 | EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||
157 | 158 | ||
158 | unsigned int get_c0_compare_int(void) | 159 | unsigned int get_c0_compare_int(void) |
159 | { | 160 | { |
diff --git a/arch/mips/mti-sead3/sead3-time.c b/arch/mips/mti-sead3/sead3-time.c index e1d69895fb1d..a120b7a5a8fe 100644 --- a/arch/mips/mti-sead3/sead3-time.c +++ b/arch/mips/mti-sead3/sead3-time.c | |||
@@ -77,6 +77,7 @@ int get_c0_perfcount_int(void) | |||
77 | return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq; | 77 | return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq; |
78 | return -1; | 78 | return -1; |
79 | } | 79 | } |
80 | EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||
80 | 81 | ||
81 | unsigned int get_c0_compare_int(void) | 82 | unsigned int get_c0_compare_int(void) |
82 | { | 83 | { |
diff --git a/arch/mips/pistachio/time.c b/arch/mips/pistachio/time.c index 7c73fcb92a10..8a377346f0ca 100644 --- a/arch/mips/pistachio/time.c +++ b/arch/mips/pistachio/time.c | |||
@@ -26,6 +26,7 @@ int get_c0_perfcount_int(void) | |||
26 | { | 26 | { |
27 | return gic_get_c0_perfcount_int(); | 27 | return gic_get_c0_perfcount_int(); |
28 | } | 28 | } |
29 | EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||
29 | 30 | ||
30 | int get_c0_fdc_int(void) | 31 | int get_c0_fdc_int(void) |
31 | { | 32 | { |
diff --git a/arch/mips/ralink/irq.c b/arch/mips/ralink/irq.c index 53707aacc0f8..8c624a8b9ea2 100644 --- a/arch/mips/ralink/irq.c +++ b/arch/mips/ralink/irq.c | |||
@@ -89,6 +89,7 @@ int get_c0_perfcount_int(void) | |||
89 | { | 89 | { |
90 | return rt_perfcount_irq; | 90 | return rt_perfcount_irq; |
91 | } | 91 | } |
92 | EXPORT_SYMBOL_GPL(get_c0_perfcount_int); | ||
92 | 93 | ||
93 | unsigned int get_c0_compare_int(void) | 94 | unsigned int get_c0_compare_int(void) |
94 | { | 95 | { |