sim-card
/
qemu
Archived
10
0
Fork 0

etrax: Dont decrease the granularity of timers

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
Edgar E. Iglesias 2011-01-26 10:36:37 +01:00
parent 5a30b7f6f1
commit 7f09581610
1 changed files with 0 additions and 4 deletions

View File

@ -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);