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>
This commit is contained in:

committed by
David Vrabel

parent
ee42d665d3
commit
d34c30cc1f
@@ -364,6 +364,7 @@ void xen_timer_resume(void)
|
||||
|
||||
static const struct pv_time_ops xen_time_ops __initconst = {
|
||||
.sched_clock = xen_clocksource_read,
|
||||
.steal_clock = xen_steal_clock,
|
||||
};
|
||||
|
||||
static void __init xen_time_init(void)
|
||||
|
Reference in New Issue
Block a user