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>
Showing
- arch/arm/Kconfig 2 additions, 1 deletionarch/arm/Kconfig
- arch/arm/include/asm/arch_timer.h 3 additions, 16 deletionsarch/arm/include/asm/arch_timer.h
- arch/arm/kernel/arch_timer.c 18 additions, 368 deletionsarch/arm/kernel/arch_timer.c
- arch/arm/mach-omap2/Kconfig 1 addition, 1 deletionarch/arm/mach-omap2/Kconfig
- drivers/clocksource/Kconfig 3 additions, 0 deletionsdrivers/clocksource/Kconfig
- drivers/clocksource/Makefile 1 addition, 0 deletionsdrivers/clocksource/Makefile
- drivers/clocksource/arm_arch_timer.c 385 additions, 0 deletionsdrivers/clocksource/arm_arch_timer.c
- include/clocksource/arm_arch_timer.h 63 additions, 0 deletionsinclude/clocksource/arm_arch_timer.h
Loading
Please register or sign in to comment