ARM: 7413/1: move read_{boot,persistent}_clock to the architecture level
authorMarc Zyngier <Marc.Zyngier@arm.com>
Sat, 5 May 2012 18:28:44 +0000 (19:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 6 May 2012 10:09:21 +0000 (11:09 +0100)
commitbd0493eaaf5c7a1ea00786d46cc2f4af44e76f28
treebd7fbb1d21c5c00b0c37eeb3ac1b09a9d4f123ac
parentf67860a76f162ebcc6a2cacf3b0538d8a67d55ae
ARM: 7413/1: move read_{boot,persistent}_clock to the architecture level

At the moment, read_persistent_clock is implemented at the
platform level, which makes it impossible to compile these
platforms in a single kernel.

Implement these two functions at the architecture level, and
provide a thin registration interface for both read_boot_clock
and read_persistent_clock. The two affected platforms (OMAP and
Tegra) are converted at the same time.

Reported-by: Jeff Ohlstein <johlstei@codeaurora.org>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/mach/time.h
arch/arm/kernel/time.c
arch/arm/mach-tegra/timer.c
arch/arm/plat-omap/counter_32k.c