linux/arch/m68k/platform/coldfire
Greg Ungerer 1f2aab01ba m68knommu: fix broken ColdFire slice timer read_clk() code
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>
2011-12-24 21:47:58 +10:00
..
cache.c Fix common misspellings 2011-03-31 11:26:23 -03:00
clk.c
dma_timer.c clocksource: m86k: Convert to clocksource_register_hz/khz 2011-12-24 21:47:56 +10:00
dma.c m68knommu: remove un-needed exporting of COLDFIRE symbols 2011-05-24 10:03:51 +10:00
entry.S m68knommu: remove unused fasthandler declaration 2011-12-24 21:47:56 +10:00
gpio.c
head.S m68knommu: disable cache early in startup for ColdFire 2011-12-24 21:47:58 +10:00
intc-2.c m68knommu: correctly use trap_init 2011-07-25 11:20:41 +10:00
intc-simr.c m68knommu: correctly use trap_init 2011-07-25 11:20:41 +10:00
intc.c m68knommu: correctly use trap_init 2011-07-25 11:20:41 +10:00
Makefile
pinmux.c
pit.c clocksource: m86k: Convert to clocksource_register_hz/khz 2011-12-24 21:47:56 +10:00
sltimers.c m68knommu: fix broken ColdFire slice timer read_clk() code 2011-12-24 21:47:58 +10:00
timers.c clocksource: m86k: Convert to clocksource_register_hz/khz 2011-12-24 21:47:56 +10:00
vectors.c m68knommu: correctly use trap_init 2011-07-25 11:20:41 +10:00