aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/xen/enlighten.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@xensource.com>2007-07-17 21:37:05 -0400
committerJeremy Fitzhardinge <jeremy@goop.org>2007-07-18 11:47:43 -0400
commitab55028886dd1dd54585f22bf19a00eb23869340 (patch)
tree083c0c3603242c3794eb9396342a590cf920a8b8 /arch/i386/xen/enlighten.c
parentf91a8b447b9af64f589f6e13fec7f09b5927563d (diff)
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>
Diffstat (limited to 'arch/i386/xen/enlighten.c')
-rw-r--r--arch/i386/xen/enlighten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/xen/enlighten.c b/arch/i386/xen/enlighten.c
index 9550ae3b1fb1..a9ba834295a2 100644
--- a/arch/i386/xen/enlighten.c
+++ b/arch/i386/xen/enlighten.c
@@ -683,7 +683,7 @@ static const struct paravirt_ops xen_paravirt_ops __initdata = {
683 .set_wallclock = xen_set_wallclock, 683 .set_wallclock = xen_set_wallclock,
684 .get_wallclock = xen_get_wallclock, 684 .get_wallclock = xen_get_wallclock,
685 .get_cpu_khz = xen_cpu_khz, 685 .get_cpu_khz = xen_cpu_khz,
686 .sched_clock = xen_clocksource_read, 686 .sched_clock = xen_sched_clock,
687 687
688 .cpuid = xen_cpuid, 688 .cpuid = xen_cpuid,
689 689