linux_old1/arch/m68k
Finn Thain 26ccd2d376 m68k: atari: Convert to clocksource API
Add a platform clocksource by adapting the existing arch_gettimeoffset
implementation.

Normally the MFP timer C interrupt flag would be used to check for
timer counter wrap-around. Unfortunately, that flag gets cleared by the
MFP itself (due to automatic End-of-Interrupt mode). This means that
mfp_timer_c_handler() and atari_read_clk() must race when accounting
for counter wrap-around.

That problem is avoided by effectively stopping the clock when it might
otherwise jump backwards (due to interrupt latency). Note that this may
affect clock accuracy.

After the timer interrupt is asserted, wait for the counter to be
reloaded so that atari_read_clk() will not see the intermediate state
as that would cause the clock to jump backwards.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2019-03-25 10:22:24 +01:00
..
68000 m68k: Fix off-by-one calendar month 2018-05-22 10:31:50 +02:00
amiga m68k: amiga: Convert to clocksource API 2019-03-25 10:22:24 +01:00
apollo m68k: apollo, q40, sun3, sun3x: Remove arch_gettimeoffset implementations 2019-03-25 10:22:24 +01:00
atari m68k: atari: Convert to clocksource API 2019-03-25 10:22:24 +01:00
bvme6000 m68k: Drop ARCH_USES_GETTIMEOFFSET 2019-03-25 10:22:24 +01:00
coldfire Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu 2019-03-11 18:33:52 -07:00
configs configs: get rid of obsolete CONFIG_ENABLE_WARN_DEPRECATED 2019-03-07 18:32:02 -08:00
emu m68k: set proper major_num when specifying module param major_num 2019-02-06 12:50:40 -07:00
fpsp040 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hp300 m68k: Drop ARCH_USES_GETTIMEOFFSET 2019-03-25 10:22:24 +01:00
ifpsp060 scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
include kbuild: force all architectures except um to include mandatory-y 2019-03-17 12:56:32 +09:00
kernel Char/Misc driver patches for 5.1-rc1 2019-03-06 14:18:59 -08:00
lib License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mac m68k: Drop ARCH_USES_GETTIMEOFFSET 2019-03-25 10:22:24 +01:00
math-emu m68k: Assorted spelling fixes 2016-07-03 14:05:28 +02:00
mm treewide: add checks for the return value of memblock_alloc*() 2019-03-12 10:04:02 -07:00
mvme16x m68k: Drop ARCH_USES_GETTIMEOFFSET 2019-03-25 10:22:24 +01:00
mvme147 m68k: Drop ARCH_USES_GETTIMEOFFSET 2019-03-25 10:22:24 +01:00
q40 m68k: apollo, q40, sun3, sun3x: Remove arch_gettimeoffset implementations 2019-03-25 10:22:24 +01:00
sun3 m68k: apollo, q40, sun3, sun3x: Remove arch_gettimeoffset implementations 2019-03-25 10:22:24 +01:00
sun3x m68k: apollo, q40, sun3, sun3x: Remove arch_gettimeoffset implementations 2019-03-25 10:22:24 +01:00
tools/amiga License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig m68k: Drop ARCH_USES_GETTIMEOFFSET 2019-03-25 10:22:24 +01:00
Kconfig.bus pcmcia: allow PCMCIA support independent of the architecture 2018-11-23 11:46:00 +09:00
Kconfig.cpu PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Kconfig.devices License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.machine m68k: Dispatch nvram_ops calls to Atari or Mac functions 2019-01-22 10:21:45 +01:00
Makefile m68k: Add -ffreestanding to CFLAGS 2019-01-21 10:36:53 +01:00
install.sh