arm: arch_timer: move core to drivers/clocksource
authorMark Rutland <mark.rutland@arm.com>
Mon, 12 Nov 2012 14:33:44 +0000 (14:33 +0000)
committerMark Rutland <mark.rutland@arm.com>
Thu, 31 Jan 2013 15:51:49 +0000 (15:51 +0000)
commit8a4da6e36c582ff746191eca85b6c1c068dbfbd6
tree9c4be7e6853d33f35580e6f7c64c3d410dfe4aaf
parentb2deabe3ba664a1ec47400c0ca285e951874e0cc
arm: arch_timer: move core to drivers/clocksource

The core functionality of the arch_timer driver is not directly tied to
anything under arch/arm, and can be split out.

This patch factors out the core of the arch_timer driver, so it can be
shared with other architectures. A couple of functions are added so
that architecture-specific code can interact with the driver without
needing to touch its internals.

The ARM_ARCH_TIMER config variable is moved out to
drivers/clocksource/Kconfig, existing uses in arch/arm are replaced with
HAVE_ARM_ARCH_TIMER, which selects it.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/Kconfig
arch/arm/include/asm/arch_timer.h
arch/arm/kernel/arch_timer.c
arch/arm/mach-omap2/Kconfig
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/arm_arch_timer.c [new file with mode: 0644]
include/clocksource/arm_arch_timer.h [new file with mode: 0644]