aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-01-26 10:36:37 +0100
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-01-26 10:36:37 +0100
commit7f0958161056ae4e4794dfeb30bc57e432d6e8e5 (patch)
tree843e9dd3315094d8c4547f8a4b7bf6c1d5b76499 /hw
parent5a30b7f6f19d65c0e204bf4cabe1fb5600f3836c (diff)
downloadqemu-7f0958161056ae4e4794dfeb30bc57e432d6e8e5.zip
qemu-7f0958161056ae4e4794dfeb30bc57e432d6e8e5.tar.gz
qemu-7f0958161056ae4e4794dfeb30bc57e432d6e8e5.tar.bz2
etrax: Dont decrease the granularity of timers
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/etraxfs_timer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/etraxfs_timer.c b/hw/etraxfs_timer.c
index ba1adbe..133741b 100644
--- a/hw/etraxfs_timer.c
+++ b/hw/etraxfs_timer.c
@@ -100,7 +100,6 @@ static uint32_t timer_readl (void *opaque, target_phys_addr_t addr)
return r;
}
-#define TIMER_SLOWDOWN 1
static void update_ctrl(struct etrax_timer *t, int tnum)
{
unsigned int op;
@@ -142,9 +141,6 @@ static void update_ctrl(struct etrax_timer *t, int tnum)
}
D(printf ("freq_hz=%d div=%d\n", freq_hz, div));
- div = div * TIMER_SLOWDOWN;
- div /= 1000;
- freq_hz /= 1000;
ptimer_set_freq(timer, freq_hz);
ptimer_set_limit(timer, div, 0);