forked from Minki/linux
1f2aab01ba
There is a race on reading the ColdFire slice timer current count and the total clock count so far. Interrupts are off, and we may have just missed getting a new timer wrap event interrupt. Check for this and adjust the cycle count and current read count accordingly. Also the slice timer counts down from the terminal count. So in read_clk() we need take the current clock count away from the terminal count. Reported-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Greg Ungerer <gerg@uclinux.org> |
||
---|---|---|
.. | ||
cache.c | ||
clk.c | ||
dma_timer.c | ||
dma.c | ||
entry.S | ||
gpio.c | ||
head.S | ||
intc-2.c | ||
intc-simr.c | ||
intc.c | ||
Makefile | ||
pinmux.c | ||
pit.c | ||
sltimers.c | ||
timers.c | ||
vectors.c |