MIPS: export get_c0_perfcount_int()
Subsystems (3)
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.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Ralf Baechle
AppliedQuoted 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: exportget_c0_perfcount_int()
Quoted 6 lines
get_c0_perfcount_intis tested from oprofile code. If oprofile is compiled as module,get_c0_perfcount_intneeds 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
Signed-off-by Felix Fietkau <[email protected]>--- 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