lkml.org 
[lkml]   [2017]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] xen/time: Return -ENODEV from xen_get_wallclock()
Date
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>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
arch/x86/xen/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
index 1ecb05d..244791f 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,
--
2.7.5
\
 
 \ /
  Last update: 2017-11-02 23:18    [W:0.041 / U:0.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site