31 Jan, 2013
3 commits
-
If we're booted in HYP mode, it is possible that we'll run some
kind of virtualized environment. In this case, it is a better to
switch to the physical timers, and leave the virtual timers to
guests.Signed-off-by: Marc Zyngier
Signed-off-by: Mark Rutland
Acked-by: Catalin Marinas -
The arch_timer driver supports a superset of the functionality of the
arm_generic driver, and is not tied to a particular arch.This patch moves arm64 to use the arch_timer driver, gaining additional
functionality in doing so, and removes the (now unused) arm_generic
driver. Timer-related hooks specific to arm64 are moved into
arch/arm64/kernel/time.c.Signed-off-by: Mark Rutland
Acked-by: Catalin Marinas
Acked-by: Marc Zyngier
Acked-by: Santosh Shilimkar -
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
Acked-by: Catalin Marinas
Acked-by: Marc Zyngier