[leon] move patches to patches-2.6.36
[openwrt/svn-archive/archive.git] / target / linux / leon / patches-2.6.36 / 008-hz_specific_timer_init.patch
1 From e4d697dad4d43109f045a4f25cb1d706122045c0 Mon Sep 17 00:00:00 2001
2 From: Daniel Hellstrom <daniel@gaisler.com>
3 Date: Wed, 22 Sep 2010 13:24:36 +0200
4 Subject: [PATCH] SPARC/LEON: removed constant timer initialization as if HZ=100, now it reflects the value of HZ
5
6 Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
7 ---
8 arch/sparc/kernel/leon_kernel.c | 4 ++--
9 1 files changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/arch/sparc/kernel/leon_kernel.c
12 +++ b/arch/sparc/kernel/leon_kernel.c
13 @@ -149,7 +149,7 @@ void __init leon_init_timers(irq_handler
14 if (leon3_gptimer_regs && leon3_irqctrl_regs && leon3_gptimer_irq) {
15 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].val, 0);
16 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].rld,
17 - (((1000000 / 100) - 1)));
18 + (((1000000 / HZ) - 1)));
19 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl, 0);
20
21 #ifdef CONFIG_SMP
22 @@ -163,7 +163,7 @@ void __init leon_init_timers(irq_handler
23 }
24
25 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx+1].val, 0);
26 - LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx+1].rld, (((1000000/100) - 1)));
27 + LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx+1].rld, (((1000000 / HZ) - 1)));
28 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx+1].ctrl, 0);
29 # endif
30