Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cb0985f authored by Felix Fietkau's avatar Felix Fietkau Committed by Ralf Baechle
Browse files

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: a669efc4 ("MIPS: Add hook to get C0 performance counter interrupt")
Cc: stable@vger.kernel.org # v3.19+
Signed-off-by: default avatarFelix 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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 1e77863a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -190,6 +190,7 @@ int get_c0_perfcount_int(void)
{
{
	return ATH79_MISC_IRQ(5);
	return ATH79_MISC_IRQ(5);
}
}
EXPORT_SYMBOL_GPL(get_c0_perfcount_int);


unsigned int get_c0_compare_int(void)
unsigned int get_c0_compare_int(void)
{
{
+1 −0
Original line number Original line Diff line number Diff line
@@ -466,6 +466,7 @@ int get_c0_perfcount_int(void)
{
{
	return ltq_perfcount_irq;
	return ltq_perfcount_irq;
}
}
EXPORT_SYMBOL_GPL(get_c0_perfcount_int);


unsigned int get_c0_compare_int(void)
unsigned int get_c0_compare_int(void)
{
{
+1 −0
Original line number Original line Diff line number Diff line
@@ -154,6 +154,7 @@ int get_c0_perfcount_int(void)


	return mips_cpu_perf_irq;
	return mips_cpu_perf_irq;
}
}
EXPORT_SYMBOL_GPL(get_c0_perfcount_int);


unsigned int get_c0_compare_int(void)
unsigned int get_c0_compare_int(void)
{
{
+1 −0
Original line number Original line Diff line number Diff line
@@ -77,6 +77,7 @@ int get_c0_perfcount_int(void)
		return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq;
		return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq;
	return -1;
	return -1;
}
}
EXPORT_SYMBOL_GPL(get_c0_perfcount_int);


unsigned int get_c0_compare_int(void)
unsigned int get_c0_compare_int(void)
{
{
+1 −0
Original line number Original line Diff line number Diff line
@@ -26,6 +26,7 @@ int get_c0_perfcount_int(void)
{
{
	return gic_get_c0_perfcount_int();
	return gic_get_c0_perfcount_int();
}
}
EXPORT_SYMBOL_GPL(get_c0_perfcount_int);


int get_c0_fdc_int(void)
int get_c0_fdc_int(void)
{
{
Loading