ARM: 7522/1: arch_timers: register a time/cycle counter
authorMarc Zyngier <Marc.Zyngier@arm.com>
Fri, 7 Sep 2012 17:09:58 +0000 (18:09 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 15 Sep 2012 20:53:33 +0000 (21:53 +0100)
commita1b2dde70419ae947fd7c9c8fcad7da005dc600e
treecf8651233dbb03cd3ce4ad891f4c40aabf2fe8a1
parentf48b5f12799dbabba4a9c799a9bef0775b2f977d
ARM: 7522/1: arch_timers: register a time/cycle counter

Some subsystems (KVM for example) need access to a cycle counter.
In the KVM case, this is used to measure the time delta between
host and guest in order to accurately generate timer events for
the guest.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/arch_timer.h
arch/arm/kernel/arch_timer.c