aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sni/time.c
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2007-11-01 06:36:42 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-11-02 12:13:48 -0400
commitc9294022af5022584756d67164e68dba0be9302b (patch)
tree859de6852ed4bf9254a2da8e335c6547c145a377 /arch/mips/sni/time.c
parentf6a8cc31aa23318c6c95aabad7f49874fb79e527 (diff)
[MIPS] SNI: register a02r clockevent; don't use PIT timer
Register A20R clockevent. Remove PIT timer setup because it doesn't work Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sni/time.c')
-rw-r--r--arch/mips/sni/time.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/sni/time.c b/arch/mips/sni/time.c
index 60bc62ef0935..6f339af08d22 100644
--- a/arch/mips/sni/time.c
+++ b/arch/mips/sni/time.c
@@ -1,6 +1,7 @@
1#include <linux/types.h> 1#include <linux/types.h>
2#include <linux/interrupt.h> 2#include <linux/interrupt.h>
3#include <linux/time.h> 3#include <linux/time.h>
4#include <linux/clockchips.h>
4 5
5#include <asm/i8253.h> 6#include <asm/i8253.h>
6#include <asm/sni.h> 7#include <asm/sni.h>
@@ -80,7 +81,7 @@ static void __init sni_a20r_timer_setup(void)
80 unsigned int cpu = smp_processor_id(); 81 unsigned int cpu = smp_processor_id();
81 82
82 cd->cpumask = cpumask_of_cpu(cpu); 83 cd->cpumask = cpumask_of_cpu(cpu);
83 84 clockevents_register_device(cd);
84 action->dev_id = cd; 85 action->dev_id = cd;
85 setup_irq(SNI_A20R_IRQ_TIMER, &a20r_irqaction); 86 setup_irq(SNI_A20R_IRQ_TIMER, &a20r_irqaction);
86} 87}
@@ -169,8 +170,6 @@ void __init plat_time_init(void)
169 170
170 mips_hpt_frequency = r4k_tick * HZ; 171 mips_hpt_frequency = r4k_tick * HZ;
171 172
172 setup_pit_timer();
173
174 switch (sni_brd_type) { 173 switch (sni_brd_type) {
175 case SNI_BRD_10: 174 case SNI_BRD_10:
176 case SNI_BRD_10NEW: 175 case SNI_BRD_10NEW: