From: Boris Ostrovsky Date: Thu, 2 Nov 2017 22:18:03 +0000 (-0400) Subject: xen/time: Return -ENODEV from xen_get_wallclock() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b5494ad83fb52a8e5a7dc1d30cb42cbca5d617f1;p=openwrt%2Fstaging%2Fblogic.git xen/time: Return -ENODEV from xen_get_wallclock() For any other error sync_cmos_clock() will reschedule itself every second or so, for no good reason. Suggested-by: Paolo Bonzini Reviewed-by: Juergen Gross Signed-off-by: Boris Ostrovsky --- diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index 1ecb05db3632..244791ff8201 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c @@ -74,7 +74,7 @@ static void xen_get_wallclock(struct timespec *now) static int xen_set_wallclock(const struct timespec *now) { - return -1; + return -ENODEV; } static int xen_pvclock_gtod_notify(struct notifier_block *nb,