summaryrefslogtreecommitdiff
path: root/target/linux/atheros/patches-2.6.33/001-get_c0_compare_int_fix.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-12-17 17:10:04 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-12-17 17:10:04 +0000
commit0d01356fc69e536f51d8694689bf1b55ea4b508d (patch)
tree55b8af1c9b2364575dd7202ba4bc5dc877ebe169 /target/linux/atheros/patches-2.6.33/001-get_c0_compare_int_fix.patch
parent8390b7dc9b1dd45dfc3a605c92ba3ff03ff0ff59 (diff)
downloadmtk-20170518-0d01356fc69e536f51d8694689bf1b55ea4b508d.zip
mtk-20170518-0d01356fc69e536f51d8694689bf1b55ea4b508d.tar.gz
mtk-20170518-0d01356fc69e536f51d8694689bf1b55ea4b508d.tar.bz2
generic: nuke 2.6.33 specific stuff, is not used by any platform
SVN-Revision: 24644
Diffstat (limited to 'target/linux/atheros/patches-2.6.33/001-get_c0_compare_int_fix.patch')
-rw-r--r--target/linux/atheros/patches-2.6.33/001-get_c0_compare_int_fix.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/target/linux/atheros/patches-2.6.33/001-get_c0_compare_int_fix.patch b/target/linux/atheros/patches-2.6.33/001-get_c0_compare_int_fix.patch
deleted file mode 100644
index 43da96c..0000000
--- a/target/linux/atheros/patches-2.6.33/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
-@@ -168,20 +168,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);
-