diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-11-02 23:18:03 +0100 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-11-03 16:37:51 +0100 |
commit | b5494ad83fb52a8e5a7dc1d30cb42cbca5d617f1 (patch) | |
tree | d15d92520866e42974abdb265a0c1e14fe42794e | |
parent | xen/pvcalls-front: mark expected switch fall-through (diff) | |
download | linux-b5494ad83fb52a8e5a7dc1d30cb42cbca5d617f1.tar.xz 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>
-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, |