diff options
author | Juergen Gross <jgross@suse.com> | 2016-07-26 08:15:11 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-07-26 09:07:06 -0400 |
commit | d34c30cc1fa80f509500ff192ea6bc7d30671061 (patch) | |
tree | e1efdb59cff6dbcc90f4a047d8f49f9561a1496f /include/xen | |
parent | ee42d665d3f5db975caf87baf101a57235ddb566 (diff) |
xen: add static initialization of steal_clock op to xen_time_ops
pv_time_ops might be overwritten with xen_time_ops after the
steal_clock operation has been initialized already. To prevent calling
a now uninitialized function pointer add the steal_clock static
initialization to xen_time_ops.
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/xen-ops.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 | ||