Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3854325imm; Mon, 30 Jul 2018 04:49:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcMFyH2KkYtAYuKF4Pz6r9McYgRTU71LV6/C3XsripJfkJ7Urx7Yu4y+7aX4X2FZnSxg0UC X-Received: by 2002:a17:902:8bc4:: with SMTP id r4-v6mr15972273plo.257.1532951398864; Mon, 30 Jul 2018 04:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532951398; cv=none; d=google.com; s=arc-20160816; b=0M7hvTrPQtckA2Sg1u26F2uXQxZr8TfmB4BwPHZq9T1jrnFuD5Qn93AdpcZpz62olR 2HWNiHUvarKyYURYwNoBW8e+xr8rGi3pfK5M7BDBFB6sbHfI5j+R8jQpHTG/ZQaX+xNe /0N/6Ckz95Yuavqqy3HFFuZvNr/NAPAVmJBKdltpSQrfHGjfIB8h7wjSc0A5D328nsxl Wh+cjQF7+Piz3DYvhsfwFo4dP8oogQNv2MjYOVKe9IHjAAh0n2qp8/1QtGu2cL/OLRy5 xYmuaIoA6TDxsaoKz9W07i8r1tE7BmyRwolFnS9ZS9/uy3knVaxlzQEKedF1JQPH2CcL J/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=/PJoItzdK6YNO0dHRQPAEFWho2h/cDT5pEW9vZJGk8k=; b=X4feJsJ+ivy8t5AWs1UYrfWhp5dJ3uq+RK9G/pHnoFfTkKWgP6at0qppC9siKzSZjG Q+DZMynKwAjZlzMuLkVF4mrmMqg8g9D0S5yjwmiFz5hi8sgt2NPHoF2BBraia1xAjHrw kVvYHyL1Qk1YM9uCTK8BE/GpluSlThPd/coedsYeCPnQSvfYzH/tFXH8+L+qxE4WKJ+S 3UiyTbjTf1ZMozZDYrPbKYEHXetz2PPfAJ8OjFVQDkNzNww6HWQ5co8J4K/ob9YPsnRS Vy8HzDMSriyOJCEaJH/1QycTSyqLh1F3vclAffPkg7LFyCxycYeP0tMaj5lkL2tQK3Ic sCTg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7-v6si5453601pgh.307.2018.07.30.04.49.44; Mon, 30 Jul 2018 04:49:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727667AbeG3NXf (ORCPT + 99 others); Mon, 30 Jul 2018 09:23:35 -0400 Received: from terminus.zytor.com ([198.137.202.136]:45145 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726935AbeG3NXf (ORCPT ); Mon, 30 Jul 2018 09:23:35 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w6UBmqoU2292868 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Jul 2018 04:48:52 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w6UBmqaH2292865; Mon, 30 Jul 2018 04:48:52 -0700 Date: Mon, 30 Jul 2018 04:48:52 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Pavel Tatashin Message-ID: Cc: pasha.tatashin@oracle.com, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, pasha.tatashin@oracle.com In-Reply-To: <20180725200018.23722-1-pasha.tatashin@oracle.com> References: <20180725200018.23722-1-pasha.tatashin@oracle.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/timers] timekeeping: Warning when persistent clock is not available Git-Commit-ID: b8becb6ca494ddb84f5752ecdb6d56ae49d9ab8a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_24_48 autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: b8becb6ca494ddb84f5752ecdb6d56ae49d9ab8a Gitweb: https://git.kernel.org/tip/b8becb6ca494ddb84f5752ecdb6d56ae49d9ab8a Author: Pavel Tatashin AuthorDate: Wed, 25 Jul 2018 16:00:18 -0400 Committer: Thomas Gleixner CommitDate: Mon, 30 Jul 2018 13:45:20 +0200 timekeeping: Warning when persistent clock is not available On arches with no persistent clock a message like this is printed during boot: [ 0.000000] Persistent clock returned invalid value The value is not invalid: it simply zero meaning no persistent clock and the absence of persistent clock should be quietly accepted. Fixes: 3eca993740b8 ("timekeeping: Replace read_boot_clock64() with read_persistent_wall_and_boot_offset()") Signed-off-by: Pavel Tatashin Signed-off-by: Thomas Gleixner Cc: steven.sistare@oracle.com Cc: daniel.m.jordan@oracle.com Cc: sboyd@kernel.org Cc: john.stultz@linaro.org Link: https://lkml.kernel.org/r/20180725200018.23722-1-pasha.tatashin@oracle.com --- kernel/time/timekeeping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 30d7f64ffc87..6183e7460138 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -1536,7 +1536,7 @@ void __init timekeeping_init(void) if (timespec64_valid_strict(&wall_time) && timespec64_to_ns(&wall_time) > 0) { persistent_clock_exists = true; - } else { + } else if (timespec64_to_ns(&wall_time) != 0) { pr_warn("Persistent clock returned invalid value"); wall_time = (struct timespec64){0}; }