m68k: mvme147: Handle timer counter overflow
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 1 Dec 2018 00:53:10 +0000 (11:53 +1100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 25 Mar 2019 09:22:24 +0000 (10:22 +0100)
commit7529b90d051e4629884771ba2b1d3a87d2c6a9d7
treef95960fd233bf19c0840e65a9281d71576a2abdc
parentfc4c47b3b5b8fe2b5d2940b9bd6203609b571b50
m68k: mvme147: Handle timer counter overflow

Reading the timer counter races with timer overflow (and the
corresponding interrupt). This is resolved by reading the overflow
register and taking this value into account. The interrupt handler
must clear the overflow register when it eventually executes.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/mvme147hw.h
arch/m68k/mvme147/config.c