H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_PVCLOCK_H |
| 2 | #define _ASM_X86_PVCLOCK_H |
Gerd Hoffmann | 7af192c | 2008-06-03 16:17:29 +0200 | [diff] [blame] | 3 | |
| 4 | #include <linux/clocksource.h> |
| 5 | #include <asm/pvclock-abi.h> |
| 6 | |
| 7 | /* some helper functions for xen and kvm pv clock sources */ |
| 8 | cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src); |
Glauber Costa | 424c32f | 2010-05-11 12:17:39 -0400 | [diff] [blame] | 9 | void pvclock_set_flags(u8 flags); |
Glauber Costa | 3807f34 | 2008-07-28 11:47:52 -0300 | [diff] [blame] | 10 | unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src); |
Gerd Hoffmann | 7af192c | 2008-06-03 16:17:29 +0200 | [diff] [blame] | 11 | void pvclock_read_wallclock(struct pvclock_wall_clock *wall, |
| 12 | struct pvclock_vcpu_time_info *vcpu, |
| 13 | struct timespec *ts); |
| 14 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 15 | #endif /* _ASM_X86_PVCLOCK_H */ |