From patchwork Thu Nov 2 22:18:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Ostrovsky X-Patchwork-Id: 10039353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8D62C60291 for ; Thu, 2 Nov 2017 22:19:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DF3D29303 for ; Thu, 2 Nov 2017 22:19:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FAA029362; Thu, 2 Nov 2017 22:19:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 207F329303 for ; Thu, 2 Nov 2017 22:19:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eANnk-0004Ut-2A; Thu, 02 Nov 2017 22:17:28 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eANnj-0004Un-2u for xen-devel@lists.xenproject.org; Thu, 02 Nov 2017 22:17:27 +0000 Received: from [85.158.143.35] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-4.bemta-6.messagelabs.com id 20/2C-30895-6799BF95; Thu, 02 Nov 2017 22:17:26 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFLMWRWlGSWpSXmKPExsUyZ7p8oG7pzN+ RBqv/61h83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBk7lh1kKVjAWrH7XTtrA+NRli5GLg4hgQlM En83TmSEcH4xSlw+9pEZwtnAKPF3WiMThLOLUWL22elAGU4ONgEjibNHpzOC2CICDhIv3y0Bs 5kF4iRerP0K1MDBISzgJPF0uTCIySKgKvFgkjhIBa+Al8T/P71g1RICchL7XjVA2YYSnzcuZZ 7AyLOAkWEVo3pxalFZapGuhV5SUWZ6RkluYmaOrqGBmV5uanFxYnpqTmJSsV5yfu4mRqDfGYB gB+Psy/6HGCU5mJREee9u/BUpxJeUn1KZkVicEV9UmpNafIhRhoNDSYJ374zfkUKCRanpqRVp mTnAAIRJS3DwKInwtoGkeYsLEnOLM9MhUqcYLTluPLz+h4mj4+ZdIPls5usGZiGWvPy8VClx3 kqQBgGQhozSPLhxsCi5xCgrJczLCHSgEE9BalFuZgmq/CtGcQ5GJWHeXSBTeDLzSuC2vgI6iA noIC+JHyAHlSQipKQaGN3TkizPr/v+hFfyQjWru+O21EXTjtwNdk24ne20/urktOl2PeHcs1y V3FqXzDI+O3PxC6tqEYkrPhlzmRrmNX+XelW++NReBruJN8pvBT+ceGH+oXlTFT5U53XYtD7j u7ZybcSSzEpj1vSyWG/nqHORwV7p3/h5K9RXLxF+feWzV5q9vOnXT0osxRmJhlrMRcWJAKnl9 4CNAgAA X-Env-Sender: boris.ostrovsky@oracle.com X-Msg-Ref: server-15.tower-21.messagelabs.com!1509661043!80039467!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 52637 invoked from network); 2 Nov 2017 22:17:25 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-15.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 2 Nov 2017 22:17:25 -0000 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA2MHMsP019253 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 22:17:23 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA2MHMoc027703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Nov 2017 22:17:22 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA2MHMmS010077; Thu, 2 Nov 2017 22:17:22 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 02 Nov 2017 15:17:21 -0700 From: Boris Ostrovsky To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Date: Thu, 2 Nov 2017 18:18:03 -0400 Message-Id: <1509661083-26679-1-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 2.7.5 X-Source-IP: userv0022.oracle.com [156.151.31.74] Cc: jgross@suse.com, pbonzini@redhat.com, Boris Ostrovsky Subject: [Xen-devel] [PATCH] xen/time: Return -ENODEV from xen_get_wallclock() X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP For any other error sync_cmos_clock() will reschedule itself every second or so, for no good reason. Suggested-by: Paolo Bonzini Signed-off-by: Boris Ostrovsky Reviewed-by: Juergen Gross --- 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,