arm64: Implement arch_counter_get_cntpct to read the physical counter
authorChristoffer Dall <christoffer.dall@linaro.org>
Wed, 18 Oct 2017 11:06:25 +0000 (13:06 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 6 Nov 2017 15:23:08 +0000 (16:23 +0100)
commitf2e600c149fda3453344f89c7e9353fe278ebd32
tree8b1c93966597d6310b4c925bf37463fe4adc7b01
parent8a5776a5f49812d29fe4b2d0a2d71675c3facf3f
arm64: Implement arch_counter_get_cntpct to read the physical counter

As we are about to use the physical counter on arm64 systems that have
KVM support, implement arch_counter_get_cntpct() and the associated
errata workaround functionality for stable timer reads.

Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/arch_timer.h
drivers/clocksource/arm_arch_timer.c