summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.1/131-MIPS-export-get_c0_perfcount_int.patch
blob: bee7673120da830fac6d5a1c187b5fbe38ec497c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
From: Felix Fietkau <nbd@openwrt.org>
Date: Thu, 23 Jul 2015 18:54:49 +0200
Subject: [PATCH] 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>
---

--- a/arch/mips/ath79/setup.c
+++ b/arch/mips/ath79/setup.c
@@ -181,6 +181,7 @@ const char *get_system_type(void)
 {
 	return ath79_sys_type;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 int get_c0_perfcount_int(void)
 {
--- a/arch/mips/lantiq/irq.c
+++ b/arch/mips/lantiq/irq.c
@@ -461,6 +461,7 @@ int __init icu_of_init(struct device_nod
 
 	return 0;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 int get_c0_perfcount_int(void)
 {
--- a/arch/mips/mti-malta/malta-time.c
+++ b/arch/mips/mti-malta/malta-time.c
@@ -163,6 +163,7 @@ unsigned int get_c0_compare_int(void)
 
 	return mips_cpu_timer_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 static void __init init_rtc(void)
 {
--- a/arch/mips/mti-sead3/sead3-time.c
+++ b/arch/mips/mti-sead3/sead3-time.c
@@ -85,6 +85,7 @@ unsigned int get_c0_compare_int(void)
 		return gic_get_c0_compare_int();
 	return MIPS_CPU_IRQ_BASE + cp0_compare_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 void __init plat_time_init(void)
 {
--- a/arch/mips/pistachio/time.c
+++ b/arch/mips/pistachio/time.c
@@ -21,6 +21,7 @@ unsigned int get_c0_compare_int(void)
 {
 	return gic_get_c0_compare_int();
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 int get_c0_perfcount_int(void)
 {
--- a/arch/mips/ralink/irq.c
+++ b/arch/mips/ralink/irq.c
@@ -95,6 +95,7 @@ unsigned int get_c0_compare_int(void)
 {
 	return CP0_LEGACY_COMPARE_IRQ;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 static void ralink_intc_irq_handler(unsigned int irq, struct irq_desc *desc)
 {