summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-05-18 17:31:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-05-18 17:31:45 +0000
commitf92e4aaf5310c5a178e867ae66a322ee85113a8a (patch)
treefeb1f8d794a03bc554bfc106c0b04b4f5ac0edf0 /target/linux/brcm63xx
parent4db60563fc106eaf97fb4ab101590bdb9282670f (diff)
downloadmtk-20170518-f92e4aaf5310c5a178e867ae66a322ee85113a8a.zip
mtk-20170518-f92e4aaf5310c5a178e867ae66a322ee85113a8a.tar.gz
mtk-20170518-f92e4aaf5310c5a178e867ae66a322ee85113a8a.tar.bz2
bcm963xx: remove obsolete timer code
This removes some code that has been deprecated in kernels >= 2.6.24. Signed-off-by: Axel Gembe <ago@bastart.eu.org> SVN-Revision: 11180
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/patches-2.6.25/090-bcm963xx_remove_obsolete_timer_code.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.25/090-bcm963xx_remove_obsolete_timer_code.patch b/target/linux/brcm63xx/patches-2.6.25/090-bcm963xx_remove_obsolete_timer_code.patch
new file mode 100644
index 0000000..9a81e00
--- /dev/null
+++ b/target/linux/brcm63xx/patches-2.6.25/090-bcm963xx_remove_obsolete_timer_code.patch
@@ -0,0 +1,73 @@
+From 42ecc15386869684cf29881a3a6941bafaa3bf69 Mon Sep 17 00:00:00 2001
+From: Axel Gembe <ago@bastart.eu.org>
+Date: Wed, 14 May 2008 00:25:28 +0200
+Subject: [PATCH] bcm963xx: remove obsolete timer code
+
+This removes some code that has been deprecated in kernels >= 2.6.24.
+
+Signed-off-by: Axel Gembe <ago@bastart.eu.org>
+---
+ arch/mips/bcm963xx/setup.c | 2 --
+ arch/mips/bcm963xx/time.c | 29 -----------------------------
+ 2 files changed, 0 insertions(+), 31 deletions(-)
+
+diff --git a/arch/mips/bcm963xx/setup.c b/arch/mips/bcm963xx/setup.c
+index 5847278..982cba0 100644
+--- a/arch/mips/bcm963xx/setup.c
++++ b/arch/mips/bcm963xx/setup.c
+@@ -465,8 +465,6 @@ void __init plat_mem_setup(void)
+ _machine_halt = brcm_machine_halt;
+ pm_power_off = brcm_machine_halt;
+
+- //board_time_init = brcm_time_init;
+-
+ /* mpi initialization */
+ mpi_init();
+ }
+diff --git a/arch/mips/bcm963xx/time.c b/arch/mips/bcm963xx/time.c
+index fa0fa71..8a5007e 100644
+--- a/arch/mips/bcm963xx/time.c
++++ b/arch/mips/bcm963xx/time.c
+@@ -71,26 +71,6 @@ static inline unsigned long __init cal_r4koff(void)
+ return (mips_hpt_frequency / HZ);
+ }
+
+-
+-/*
+- * There are a lot of conceptually broken versions of the MIPS timer interrupt
+- * handler floating around. This one is rather different, but the algorithm
+- * is provably more robust.
+- */
+-#if 0
+-irqreturn_t brcm_timer_interrupt(struct pt_regs *regs)
+-{
+- int irq = MIPS_TIMER_INT;
+-
+- irq_enter();
+- kstat_this_cpu.irqs[irq]++;
+-
+- timer_interrupt(irq, regs);
+- irq_exit();
+- return IRQ_HANDLED;
+-}
+-#endif
+-
+ void __init plat_time_init(void)
+ {
+ unsigned int est_freq, flags;
+@@ -107,12 +87,3 @@ void __init plat_time_init(void)
+ (est_freq % 1000000) * 100 / 1000000);
+ local_irq_restore(flags);
+ }
+-
+-#if 0
+-void __init plat_timer_setup(struct irqaction *irq)
+-{
+- r4k_cur = (read_c0_count() + r4k_offset);
+- write_c0_compare(r4k_cur);
+- set_c0_status(IE_IRQ5);
+-}
+-#endif
+--
+1.5.5.1
+