m68k: mvme16x: 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:25 +0000 (10:22 +0100)
commit19999a8b8782d7f887353753c3c7cb5fca2f3784
treebd52382ef3503e75a2875918185073aada40335b
parent3d744eee38f11cafb0fc332c3081ab1cd07a89f7
m68k: mvme16x: 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/mvme16x/config.c