diff options
| -rw-r--r-- | arch/x86/xen/time.c | 1 | ||||
| -rw-r--r-- | drivers/xen/time.c | 2 | ||||
| -rw-r--r-- | include/xen/xen-ops.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index fd7cd6f29b68..67356d29d74d 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c | |||
| @@ -364,6 +364,7 @@ void xen_timer_resume(void) | |||
| 364 | 364 | ||
| 365 | static const struct pv_time_ops xen_time_ops __initconst = { | 365 | static const struct pv_time_ops xen_time_ops __initconst = { |
| 366 | .sched_clock = xen_clocksource_read, | 366 | .sched_clock = xen_clocksource_read, |
| 367 | .steal_clock = xen_steal_clock, | ||
| 367 | }; | 368 | }; |
| 368 | 369 | ||
| 369 | static void __init xen_time_init(void) | 370 | static void __init xen_time_init(void) |
diff --git a/drivers/xen/time.c b/drivers/xen/time.c index 48c3f6983067..ac5f23fcafc2 100644 --- a/drivers/xen/time.c +++ b/drivers/xen/time.c | |||
| @@ -80,7 +80,7 @@ bool xen_vcpu_stolen(int vcpu) | |||
| 80 | return per_cpu(xen_runstate, vcpu).state == RUNSTATE_runnable; | 80 | return per_cpu(xen_runstate, vcpu).state == RUNSTATE_runnable; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | static u64 xen_steal_clock(int cpu) | 83 | u64 xen_steal_clock(int cpu) |
| 84 | { | 84 | { |
| 85 | struct vcpu_runstate_info state; | 85 | struct vcpu_runstate_info state; |
| 86 | 86 | ||
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h index c9c532d56623..9a37c541822f 100644 --- a/include/xen/xen-ops.h +++ b/include/xen/xen-ops.h | |||
| @@ -29,6 +29,7 @@ bool xen_vcpu_stolen(int vcpu); | |||
| 29 | void xen_setup_runstate_info(int cpu); | 29 | void xen_setup_runstate_info(int cpu); |
| 30 | void xen_time_setup_guest(void); | 30 | void xen_time_setup_guest(void); |
| 31 | void xen_get_runstate_snapshot(struct vcpu_runstate_info *res); | 31 | void xen_get_runstate_snapshot(struct vcpu_runstate_info *res); |
| 32 | u64 xen_steal_clock(int cpu); | ||
| 32 | 33 | ||
| 33 | int xen_setup_shutdown_event(void); | 34 | int xen_setup_shutdown_event(void); |
| 34 | 35 | ||
