]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: generic timer: use virtual counter instead of physical at EL0
authorWill Deacon <will.deacon@arm.com>
Thu, 29 Nov 2012 22:48:31 +0000 (22:48 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Dec 2012 11:20:04 +0000 (11:20 +0000)
commit01779450d0c23560d24d703eccb41f31714297a3
treed326cb2f58040c910390e80f5a5287b0074a0276
parentc3a8aa7139d21ba1066cb95e9fb2753a7b455536
arm64: generic timer: use virtual counter instead of physical at EL0

We want to use the virtual counter at EL0, as the physical counter
may not track the current clocksource for guests running under a
hypervisor.

This patch updates the vdso and generic timer driver to use the virtual
counter. The kernel EL2 entry code is also updated to ensure that the
virtual offset is initialised to zero.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/arm_generic.h
arch/arm64/kernel/head.S
arch/arm64/kernel/vdso/gettimeofday.S
drivers/clocksource/arm_generic.c