]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: ks8695: convert to generic time and clocksource
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2012 18:27:22 +0000 (20:27 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 5 Sep 2012 06:49:22 +0000 (08:49 +0200)
commita6a23e123402af47d2352e7f7cbc03369c57858f
treeec58ba9e50f3d849527d0ebc914b0c0fe2a903f3
parentf5e9c1cf583905ca3d7c2204f97a80f8a036ca1b
ARM: ks8695: convert to generic time and clocksource

Old platforms using ancient gettimeoffset() and other arcane
APIs are standing in the way of cleaning up the ARM kernel.
The gettimeoffset() was also broken: it would try to read out
the timer counter value, while this would not work (the
counter statically returns the initially programmed value)
so the implementation would anyway fall back to a homebrew
version of jiffie calculation.

This is an attempt at blind-coding a generic time and clocksource
driver for the platform by way of a datasheet and looking at the
old code.

Tested-by: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/Kconfig
arch/arm/mach-ks8695/time.c