Skip to contentSkip to conversation

MIPS: export get_c0_perfcount_int()

PATCH Applied Felix Fietkau 2 participants 2 messages Jul 23, 2015 – Jul 28, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 [email protected] # v3.19+
---
 arch/mips/ath79/setup.c          | 1 +
 arch/mips/lantiq/irq.c           | 1 +
 arch/mips/mti-malta/malta-time.c | 1 +
 arch/mips/mti-sead3/sead3-time.c | 1 +
 arch/mips/pistachio/time.c       | 1 +
 arch/mips/ralink/irq.c           | 1 +
 6 files changed, 6 insertions(+)
arch/mips/ath79/setup.c +1 -0
index 01a644f..1ba2120 100644
@@ -190,6 +190,7 @@ int get_c0_perfcount_int(void)
 {
 	return ATH79_MISC_IRQ(5);
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
arch/mips/lantiq/irq.c +1 -0
index 6ab1057..d01ade6 100644
@@ -466,6 +466,7 @@ int get_c0_perfcount_int(void)
 {
 	return ltq_perfcount_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
arch/mips/mti-malta/malta-time.c +1 -0
index 5625b19..e1bd9ed 100644
@@ -154,6 +154,7 @@ int get_c0_perfcount_int(void)
 
 	return mips_cpu_perf_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
arch/mips/mti-sead3/sead3-time.c +1 -0
index e1d6989..a120b7a 100644
@@ -77,6 +77,7 @@ int get_c0_perfcount_int(void)
 		return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq;
 	return -1;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
arch/mips/pistachio/time.c +1 -0
index 7c73fcb..8a37734 100644
@@ -26,6 +26,7 @@ int get_c0_perfcount_int(void)
 {
 	return gic_get_c0_perfcount_int();
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 int get_c0_fdc_int(void)
 {
arch/mips/ralink/irq.c +1 -0
index 53707aa..8c624a8 100644
@@ -89,6 +89,7 @@ int get_c0_perfcount_int(void)
 {
 	return rt_perfcount_irq;
 }
+EXPORT_SYMBOL_GPL(get_c0_perfcount_int);
 
 unsigned int get_c0_compare_int(void)
 {
Signature · 1 line
2.2.2
Applied
#1 lore raw
Quoted 6 lines · Felix Fietkau

Date: Thu, 23 Jul 2015 18:59:52 +0200
From: Felix Fietkau <[email protected]>
To: [email protected]
Cc: [email protected], [email protected]
Subject: [PATCH] MIPS: export get_c0_perfcount_int()

Quoted 6 lines

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 [email protected] # v3.19+

You didn't actually cc this email to [email protected].

Quoted 7 lines
---
 arch/mips/ath79/setup.c          | 1 +
 arch/mips/lantiq/irq.c           | 1 +
 arch/mips/mti-malta/malta-time.c | 1 +
 arch/mips/mti-sead3/sead3-time.c | 1 +
 arch/mips/pistachio/time.c       | 1 +

Pistachio was merged for 4.1 so this patch won't apply to older kernels. You may also want to submit a separate version for those -stable kernels.

Applied.

Ralf