diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-02-09 11:33:30 +0000 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-02-09 11:33:30 +0000 |
commit | ddee56dc299439c21524adeed103219205b5a7b9 (patch) | |
tree | 7b343b9692d9e19c2f855967dd74c77e8b2daa61 /xen/include | |
parent | afc22739360166d405e2450ea72b95401690f52a (diff) | |
download | xen-ddee56dc299439c21524adeed103219205b5a7b9.tar.gz xen-ddee56dc299439c21524adeed103219205b5a7b9.tar.bz2 xen-ddee56dc299439c21524adeed103219205b5a7b9.zip |
arm: driver for the generic timer for ARMv7
Driver for the generic timer for ARMv7 with virtualization extensions.
Currently it is based on the kernel timer rather than the hypervisor timer
because the latter does not work correctly on our test environment.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include')
-rw-r--r-- | xen/include/asm-arm/time.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/xen/include/asm-arm/time.h b/xen/include/asm-arm/time.h new file mode 100644 index 0000000000..8cc9e78888 --- /dev/null +++ b/xen/include/asm-arm/time.h @@ -0,0 +1,26 @@ +#ifndef __ARM_TIME_H__ +#define __ARM_TIME_H__ + +typedef unsigned long cycles_t; + +static inline cycles_t get_cycles (void) +{ + return 0; +} + +struct tm; +struct tm wallclock_time(void); + + +/* Set up the timer interrupt on this CPU */ +extern void __cpuinit init_timer_interrupt(void); + +#endif /* __ARM_TIME_H__ */ +/* + * Local variables: + * mode: C + * c-set-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ |