
22 Nov
2005
22 Nov
'05
10:32 a.m.
Wolfgang,
the AT91RM9200 timer functions are confusing apples with bananas.
When the (16-bit) timer overflows, we have lost exactly 2^16 counts (or a multiple thereof, but we currently can't catch that situation), but get_timer_raw() instead adds the (unrelated) conversion factor to milliseconds, causing udelay() to potentially return too early.
The patch below fixes this.
Cheers Anders
CHANGELOG: Fix incorrect handling of at91rm9200 timer overflow in get_timer_raw() Patch by Anders Larsen, 11 Nov 2005
Signed-off-by: Anders Larsen alarsen@rea.de
Makes sense. Please apply.
-- Steven