diff options
author | Marc Zyngier <Marc.Zyngier@arm.com> | 2012-09-07 18:09:58 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-09-15 21:53:33 +0100 |
commit | a1b2dde70419ae947fd7c9c8fcad7da005dc600e (patch) | |
tree | cf8651233dbb03cd3ce4ad891f4c40aabf2fe8a1 /arch/arm/include | |
parent | f48b5f12799dbabba4a9c799a9bef0775b2f977d (diff) | |
download | linux-stable-a1b2dde70419ae947fd7c9c8fcad7da005dc600e.tar.gz linux-stable-a1b2dde70419ae947fd7c9c8fcad7da005dc600e.tar.bz2 linux-stable-a1b2dde70419ae947fd7c9c8fcad7da005dc600e.zip |
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>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch_timer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch_timer.h b/arch/arm/include/asm/arch_timer.h index 62e75475e57e..ad9b155c8262 100644 --- a/arch/arm/include/asm/arch_timer.h +++ b/arch/arm/include/asm/arch_timer.h @@ -2,11 +2,13 @@ #define __ASMARM_ARCH_TIMER_H #include <asm/errno.h> +#include <linux/clocksource.h> #ifdef CONFIG_ARM_ARCH_TIMER #define ARCH_HAS_READ_CURRENT_TIMER int arch_timer_of_register(void); int arch_timer_sched_clock_init(void); +struct timecounter *arch_timer_get_timecounter(void); #else static inline int arch_timer_of_register(void) { @@ -17,6 +19,11 @@ static inline int arch_timer_sched_clock_init(void) { return -ENXIO; } + +static inline struct timecounter *arch_timer_get_timecounter(void) +{ + return NULL; +} #endif #endif |