xen: Implement sched_clock
authorJeremy Fitzhardinge <jeremy@xensource.com>
Wed, 18 Jul 2007 01:37:05 +0000 (18:37 -0700)
committerJeremy Fitzhardinge <jeremy@goop.org>
Wed, 18 Jul 2007 15:47:43 +0000 (08:47 -0700)
commitab55028886dd1dd54585f22bf19a00eb23869340
tree083c0c3603242c3794eb9396342a590cf920a8b8
parentf91a8b447b9af64f589f6e13fec7f09b5927563d
xen: Implement sched_clock

Implement xen_sched_clock, which returns the number of ns the current
vcpu has been actually in an unstolen state (ie, running or blocked,
vs runnable-but-not-running, or offline) since boot.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Cc: john stultz <johnstul@us.ibm.com>
arch/i386/xen/enlighten.c
arch/i386/xen/time.c
arch/i386/xen/xen-ops.h