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 | |
parent | 3d8765d4f52a0050343bfa99a1a2aa5ef7d841e5 (diff) |
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) | |||
74 | 74 | ||
75 | static int xen_set_wallclock(const struct timespec *now) | 75 | static int xen_set_wallclock(const struct timespec *now) |
76 | { | 76 | { |
77 | return -1; | 77 | return -ENODEV; |
78 | } | 78 | } |
79 | 79 | ||
80 | static int xen_pvclock_gtod_notify(struct notifier_block *nb, | 80 | static int xen_pvclock_gtod_notify(struct notifier_block *nb, |