diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-29 10:23:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-29 10:23:59 +0000 |
commit | 980e9b5fc27ec464e9047c053288fe37ec9e977b (patch) | |
tree | 62993f27855c5a0a5a53468a43c13c6bafdb4535 /target/linux/atheros/patches-3.8/001-get_c0_compare_int_fix.patch | |
parent | 1c0557cfa80e6c5258960e6f12f526ba57082276 (diff) | |
download | upstream-980e9b5fc27ec464e9047c053288fe37ec9e977b.tar.gz upstream-980e9b5fc27ec464e9047c053288fe37ec9e977b.tar.bz2 upstream-980e9b5fc27ec464e9047c053288fe37ec9e977b.zip |
atheros: remove linux 3.8 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41874
Diffstat (limited to 'target/linux/atheros/patches-3.8/001-get_c0_compare_int_fix.patch')
-rw-r--r-- | target/linux/atheros/patches-3.8/001-get_c0_compare_int_fix.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/target/linux/atheros/patches-3.8/001-get_c0_compare_int_fix.patch b/target/linux/atheros/patches-3.8/001-get_c0_compare_int_fix.patch deleted file mode 100644 index ff6cc998ff..0000000000 --- a/target/linux/atheros/patches-3.8/001-get_c0_compare_int_fix.patch +++ /dev/null @@ -1,39 +0,0 @@ -Fix the usage of get_c0_compare_int: override cp0_compare_irq if the returned -value is in the MIPS CPU IRQ range to ensure that c0_compare_int_usable() -still works. - -Signed-off-by: Felix Fietkau <nbd@openwrt.org> - ---- a/arch/mips/kernel/cevt-r4k.c -+++ b/arch/mips/kernel/cevt-r4k.c -@@ -173,20 +173,23 @@ int __cpuinit r4k_clockevent_init(void) - struct clock_event_device *cd; - unsigned int irq; - -- if (!cpu_has_counter || !mips_hpt_frequency) -- return -ENXIO; -- -- if (!c0_compare_int_usable()) -- return -ENXIO; -- - /* - * With vectored interrupts things are getting platform specific. - * get_c0_compare_int is a hook to allow a platform to return the - * interrupt number of it's liking. - */ - irq = MIPS_CPU_IRQ_BASE + cp0_compare_irq; -- if (get_c0_compare_int) -+ if (get_c0_compare_int) { - irq = get_c0_compare_int(); -+ if ((irq >= MIPS_CPU_IRQ_BASE) && (irq < MIPS_CPU_IRQ_BASE + 8)) -+ cp0_compare_irq = irq - MIPS_CPU_IRQ_BASE; -+ } -+ -+ if (!cpu_has_counter || !mips_hpt_frequency) -+ return -ENXIO; -+ -+ if (!c0_compare_int_usable()) -+ return -ENXIO; - - cd = &per_cpu(mips_clockevent_device, cpu); - |