]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 13 Feb 2013 10:53:27 +0000 (19:53 +0900)
commit83f63e8cfff70cfb6f1426a880a55412ff3b256c
tree171a27e9282f20bdd07050f9c0671cb237a8cfd7
parent6850d23671cecd49b52c5b34fd48ba4671ba4bec
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