Convert OMAPs 32kHz clocksource implementation to use the generic MMIO
authorRussell King - ARM Linux <linux@arm.linux.org.uk>
Mon, 11 Jul 2011 06:05:34 +0000 (23:05 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 11 Jul 2011 06:05:34 +0000 (23:05 -0700)
commit354a183f536a8edf6cb80ee3e3f393736e278810
tree499ca3cad660ea38fdd95cc1fb50ecb16adafc07
parent727e18b429e3badda12d1de74f492bfa363a2e94
Convert OMAPs 32kHz clocksource implementation to use the generic MMIO
clocksource support.  This achieves several things:

1. It means we get rid of all these helper functions which frankly should
   never have been necessary.
2. It means omap_readl() inside these helper functions does not appear in
   ftrace output.

Another plus is that we avoid the overhead of calculating the address to
read each time, but a minus is that we use readl() which has a barrier.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[tony@atomide.com: updated to use ioremap]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/Kconfig
arch/arm/plat-omap/counter_32k.c