blob: 53235fd5f8ce67cf4f085c092e611fa19fa04684 [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 Costa3807f342008-07-28 11:47:52 -03009unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src);
Gerd Hoffmann7af192c2008-06-03 16:17:29 +020010void pvclock_read_wallclock(struct pvclock_wall_clock *wall,
11 struct pvclock_vcpu_time_info *vcpu,
12 struct timespec *ts);
13
H. Peter Anvin1965aae2008-10-22 22:26:29 -070014#endif /* _ASM_X86_PVCLOCK_H */