diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-11-02 18:18:03 -0400 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-11-03 11:37:51 -0400 |
commit | b5494ad83fb52a8e5a7dc1d30cb42cbca5d617f1 (patch) | |
tree | d15d92520866e42974abdb265a0c1e14fe42794e /arch/x86 | |
parent | 3d8765d4f52a0050343bfa99a1a2aa5ef7d841e5 (diff) | |
download | linux-b5494ad83fb52a8e5a7dc1d30cb42cbca5d617f1.tar.gz linux-b5494ad83fb52a8e5a7dc1d30cb42cbca5d617f1.tar.bz2 linux-b5494ad83fb52a8e5a7dc1d30cb42cbca5d617f1.zip |
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 <pbonzini@redhat.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/xen/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |