x86: Add structs and functions for paravirt clocksource
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 3 Jun 2008 14:17:29 +0000 (16:17 +0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 24 Jun 2008 18:02:31 +0000 (21:02 +0300)
This patch adds structs for the paravirt clocksource ABI
used by both xen and kvm (pvclock-abi.h).

It also adds some helper functions to read system time and
wall clock time from a paravirtual clocksource (pvclock.[ch]).
They are based on the xen code.  They are enabled using
CONFIG_PARAVIRT_CLOCK.

Subsequent patches of this series will put the code in use.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>

No differences found