[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 3/4] x86/xen: sync the wallclock when the system time is stepped
>>> On 19.06.13 at 17:25, David Vrabel <david.vrabel@xxxxxxxxxx> wrote: > --- a/arch/x86/xen/time.c > +++ b/arch/x86/xen/time.c > @@ -211,6 +211,26 @@ static int xen_set_wallclock(const struct timespec *now) > > return HYPERVISOR_dom0_op(&op); > } > + > +static int xen_clock_was_set_notify(struct notifier_block *nb, unsigned long > unused, > + void *priv) > +{ > + struct timespec now; > + int ret; Unused variable. Jan > + > + /* > + * Set the Xen wallclock from Linux system time. > + */ > + now = current_kernel_time(); > + xen_set_wallclock(&now); > + > + return NOTIFY_OK; > +} > + > +static struct notifier_block xen_clock_was_set_notifier = { > + .notifier_call = xen_clock_was_set_notify, > +}; > + > > static struct clocksource xen_clocksource __read_mostly = { > .name = "xen", _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |