Skip to content

Commit b690c42

Browse files
daniel-hellstromdavem330
authored andcommitted
SPARC/LEON: removed constant timer initialization as if HZ=100, now it reflects the value of HZ
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e69f58c commit b690c42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/sparc/kernel/leon_kernel.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void __init leon_init_timers(irq_handler_t counter_fn)
114114
if (leon3_gptimer_regs && leon3_irqctrl_regs) {
115115
LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].val, 0);
116116
LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].rld,
117-
(((1000000 / 100) - 1)));
117+
(((1000000 / HZ) - 1)));
118118
LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[0].ctrl, 0);
119119

120120
#ifdef CONFIG_SMP
@@ -128,7 +128,7 @@ void __init leon_init_timers(irq_handler_t counter_fn)
128128
}
129129

130130
LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].val, 0);
131-
LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].rld, (((1000000/100) - 1)));
131+
LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].rld, (((1000000/HZ) - 1)));
132132
LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[1].ctrl, 0);
133133
# endif
134134

0 commit comments

Comments
 (0)