blob: cd02f324aa6b39c8ba1d149b7646f356043fa77c [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_PVCLOCK_H
2#define _ASM_X86_PVCLOCK_H
Gerd Hoffmann7af192c2008-06-03 16:17:29 +02003
4#include <linux/clocksource.h>
5#include <asm/pvclock-abi.h>
6
7/* some helper functions for xen and kvm pv clock sources */
8cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src);
Glauber Costa424c32f2010-05-11 12:17:39 -04009void pvclock_set_flags(u8 flags);
Glauber Costa3807f342008-07-28 11:47:52 -030010unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src);
Gerd Hoffmann7af192c2008-06-03 16:17:29 +020011void pvclock_read_wallclock(struct pvclock_wall_clock *wall,
12 struct pvclock_vcpu_time_info *vcpu,
13 struct timespec *ts);
14
H. Peter Anvin1965aae2008-10-22 22:26:29 -070015#endif /* _ASM_X86_PVCLOCK_H */