[MIPS] No need to write c0_compare in plat_timer_setup

If R4k counter was used for hpt_timer and interrupt source,
c0_hpt_timer_init() initializes the c0_compare register.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by Atsushi Nemoto and committed by Ralf Baechle 12e4396b a0574e04

-26
-1
arch/mips/lasat/setup.c
··· 116 117 void __init plat_timer_setup(struct irqaction *irq) 118 { 119 - write_c0_compare( read_c0_count() + mips_hpt_frequency / HZ); 120 change_c0_status(ST0_IM, IE_IRQ0 | IE_IRQ5); 121 } 122
··· 116 117 void __init plat_timer_setup(struct irqaction *irq) 118 { 119 change_c0_status(ST0_IM, IE_IRQ0 | IE_IRQ5); 120 } 121
-3
arch/mips/mips-boards/generic/time.c
··· 295 irq_desc[mips_cpu_timer_irq].status |= IRQ_PER_CPU; 296 set_irq_handler(mips_cpu_timer_irq, handle_percpu_irq); 297 #endif 298 - 299 - /* to generate the first timer interrupt */ 300 - write_c0_compare (read_c0_count() + mips_hpt_frequency/HZ); 301 }
··· 295 irq_desc[mips_cpu_timer_irq].status |= IRQ_PER_CPU; 296 set_irq_handler(mips_cpu_timer_irq, handle_percpu_irq); 297 #endif 298 }
-3
arch/mips/mips-boards/sim/sim_time.c
··· 199 irq_desc[mips_cpu_timer_irq].flags |= IRQ_PER_CPU; 200 set_irq_handler(mips_cpu_timer_irq, handle_percpu_irq); 201 #endif 202 - 203 - /* to generate the first timer interrupt */ 204 - write_c0_compare(read_c0_count() + (mips_hpt_frequency/HZ)); 205 }
··· 199 irq_desc[mips_cpu_timer_irq].flags |= IRQ_PER_CPU; 200 set_irq_handler(mips_cpu_timer_irq, handle_percpu_irq); 201 #endif 202 }
-10
arch/mips/tx4927/common/tx4927_setup.c
··· 81 82 void __init plat_timer_setup(struct irqaction *irq) 83 { 84 - u32 count; 85 - u32 c1; 86 - u32 c2; 87 - 88 setup_irq(TX4927_IRQ_CPU_TIMER, irq); 89 - 90 - /* to generate the first timer interrupt */ 91 - c1 = read_c0_count(); 92 - count = c1 + (mips_hpt_frequency / HZ); 93 - write_c0_compare(count); 94 - c2 = read_c0_count(); 95 96 #ifdef CONFIG_TOSHIBA_RBTX4927 97 {
··· 81 82 void __init plat_timer_setup(struct irqaction *irq) 83 { 84 setup_irq(TX4927_IRQ_CPU_TIMER, irq); 85 86 #ifdef CONFIG_TOSHIBA_RBTX4927 87 {
-9
arch/mips/tx4938/common/setup.c
··· 55 56 void __init plat_timer_setup(struct irqaction *irq) 57 { 58 - u32 count; 59 - u32 c1; 60 - u32 c2; 61 - 62 setup_irq(TX4938_IRQ_CPU_TIMER, irq); 63 - 64 - c1 = read_c0_count(); 65 - count = c1 + (mips_hpt_frequency / HZ); 66 - write_c0_compare(count); 67 - c2 = read_c0_count(); 68 }
··· 55 56 void __init plat_timer_setup(struct irqaction *irq) 57 { 58 setup_irq(TX4938_IRQ_CPU_TIMER, irq); 59 }