clocksource: sh_cmt: CMCNT and CMCOR register access update
authorMagnus Damm <damm@opensource.se>
Fri, 14 Dec 2012 05:54:19 +0000 (14:54 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 12 Mar 2013 17:24:36 +0000 (02:24 +0900)
commita6a912ca43843d43590ce5f1cbc85cbc7ac14bba
treed160d1be938a9ef05363bc40c83db001cd402e9d
parent587acb3dd5cf387de1325309e831fd0f560d1bf6
clocksource: sh_cmt: CMCNT and CMCOR register access update

Break out the CMCNT and CMCOR register access code
into separate 16-bit and 32-bit functions that are
hooked into callbacks at init time. This reduces
the amount of software calculations happening at
runtime.

Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: John Stultz <john.stultz@linaro.org>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_cmt.c