Received: by 10.223.164.221 with SMTP id h29csp2679358wrb; Thu, 2 Nov 2017 15:30:35 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Sxs6d9roXm3Iz3sbJP9uAqj8VpWj2Q2CQioCBM47edgU/cQnf65qqv9gHiuFMUTc7UOyCB X-Received: by 10.84.140.235 with SMTP id 98mr4878202plt.428.1509661835808; Thu, 02 Nov 2017 15:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509661835; cv=none; d=google.com; s=arc-20160816; b=HHV/SXp/Dcb8UY1LCEhrpLFCXzvrtziNwBExN6oFcqMMWnWl4DfNxIutj/7JyvOZOo udjTwvG3h7gbKwQ1OakcH3Pbic8ZKtgcJqWtklXu66hpQpsI9hhUMipifAek3REtPAC1 itbJPOHiib8NyygQCwn1vZIHUPAgpK4w5Q4qCOJwxNC7reOSoIM9LR9gHBuX8kEzmAcV EUMmLGtCtzVa23bqetYl6mniCauvLBj4vMyoQI38PTpWoXZI8RR84vSF508rV0jz8joD MBHOD2f3hUXZdFMmspwXfm/gYLE1U3rH0MB3FDuYvQmrJIkhoqvDZZXrd+0/HHYYMTnV lGRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=KV2uSnfABgQpVKOv5GuejqSejWaTEtHwKDyxeV0DjDg=; b=Cqs3FUkQUYPQq/oYvdE9f80JmOJHun7ziZNYxArMAgv7t66Z6Ri2XFlvOFtLTxba70 NPeDUNNe+Pjx8AjFppRzzM9iyM7UdacDdapbwHjtFNbY5fa1FBrS4T0spOU+O5+1gYW5 ij90uYyrphSSrbdPTaJASyunFg1Ezom/GtjRTFzpo/Rlc0jJrktXRn4BS4pDqPHWykfI A+w1mog69KahvwhIVBJbuYIIt396eKuYwAe6CXg1sFd+D4i441GdiZ0sMItO3KFRgOO4 Hym6GnTOApmrbQxIHizJBee1XGj8SF+n68sPLH25raby8d/DtokjTvCxd1dZFAwkD/TP Ce0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si3174834pla.69.2017.11.02.15.30.20; Thu, 02 Nov 2017 15:30:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934571AbdKBWRb (ORCPT + 99 others); Thu, 2 Nov 2017 18:17:31 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:30987 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934421AbdKBWRa (ORCPT ); Thu, 2 Nov 2017 18:17:30 -0400 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 Cc: jgross@suse.com, pbonzini@redhat.com, Boris Ostrovsky Subject: [PATCH] xen/time: Return -ENODEV from xen_get_wallclock() 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] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 From 1582997970378372272@xxx Thu Nov 02 23:15:07 +0000 2017 X-GM-THRID: 1582997970378372272 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread