blob: ad29e277fd6d6dd9d114e33b6113c42d03bf5d2c [file] [log] [blame]
Vegard Nossum77ef50a2008-06-18 17:08:48 +02001#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
Vegard Nossum77ef50a2008-06-18 17:08:48 +020014#endif /* ASM_X86__PVCLOCK_H */