]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clocksource: armada-370-xp: Simplify TIMER_CTRL register access
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 13 Aug 2013 14:43:11 +0000 (11:43 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 2 Sep 2013 19:43:58 +0000 (21:43 +0200)
commit3579698e85ef9984e698ac3d8e2257a1adeeb722
tree443343811c194656a847c82fbaf1d57c7a1c41da
parentad48bd618f3761922c53f08e05fe00f3c85ca275
clocksource: armada-370-xp: Simplify TIMER_CTRL register access

This commit creates two functions to access the TIMER_CTRL register:
one for global one for the per-cpu. This makes the code much more
readable. In addition, since the TIMER_CTRL register is also used for
watchdog, this is preparation work for future thread-safe improvements.

Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/time-armada-370-xp.c