Author: nbd Date: 2015-07-24 17:36:02 +0200 (Fri, 24 Jul 2015) New Revision: 46482
Added: trunk/target/linux/generic/patches-4.1/131-MIPS-export-get_c0_perfcount_int.patch Modified: trunk/target/linux/ar71xx/patches-4.1/509-MIPS-ath79-process-board-kernel-option.patch Log: kernel: fix oprofile performance counter interrupt handling on mips Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/target/linux/ar71xx/patches-4.1/509-MIPS-ath79-process-board-kernel-option.patch =================================================================== --- trunk/target/linux/ar71xx/patches-4.1/509-MIPS-ath79-process-board-kernel-option.patch 2015-07-24 15:35:55 UTC (rev 46481) +++ trunk/target/linux/ar71xx/patches-4.1/509-MIPS-ath79-process-board-kernel-option.patch 2015-07-24 15:36:02 UTC (rev 46482) @@ -1,6 +1,6 @@ --- a/arch/mips/ath79/setup.c +++ b/arch/mips/ath79/setup.c -@@ -235,6 +235,8 @@ void __init plat_time_init(void) +@@ -236,6 +236,8 @@ void __init plat_time_init(void) mips_hpt_frequency = cpu_clk_rate / 2; } Added: trunk/target/linux/generic/patches-4.1/131-MIPS-export-get_c0_perfcount_int.patch =================================================================== --- trunk/target/linux/generic/patches-4.1/131-MIPS-export-get_c0_perfcount_int.patch (rev 0) +++ trunk/target/linux/generic/patches-4.1/131-MIPS-export-get_c0_perfcount_int.patch 2015-07-24 15:36:02 UTC (rev 46482) @@ -0,0 +1,73 @@ +From: Felix Fietkau <[email protected]> +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: [email protected] # v3.19+ +Signed-off-by: Felix Fietkau <[email protected]> +--- + +--- a/arch/mips/ath79/setup.c ++++ b/arch/mips/ath79/setup.c +@@ -186,6 +186,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) + { +--- a/arch/mips/lantiq/irq.c ++++ b/arch/mips/lantiq/irq.c +@@ -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) + { +--- a/arch/mips/mti-malta/malta-time.c ++++ b/arch/mips/mti-malta/malta-time.c +@@ -148,6 +148,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) + { +--- 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) + return MIPS_CPU_IRQ_BASE + cp0_perfcount_irq; + return -1; + } ++EXPORT_SYMBOL_GPL(get_c0_perfcount_int); + + unsigned int get_c0_compare_int(void) + { +--- a/arch/mips/pistachio/time.c ++++ b/arch/mips/pistachio/time.c +@@ -26,6 +26,7 @@ int get_c0_perfcount_int(void) + { + return gic_get_c0_perfcount_int(); + } ++EXPORT_SYMBOL_GPL(get_c0_perfcount_int); + + void __init plat_time_init(void) + { +--- a/arch/mips/ralink/irq.c ++++ b/arch/mips/ralink/irq.c +@@ -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) + { _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
