Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2123964imm; Sat, 23 Jun 2018 09:58:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLGbHFCRhZ9Y5BB7Slcm3v3Ca7VTZCSB6uxNXeZ5wks7WxDur6ma1OlShKGl0sL3m7+jfbh X-Received: by 2002:a65:5d0e:: with SMTP id e14-v6mr907187pgr.175.1529773104853; Sat, 23 Jun 2018 09:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529773104; cv=none; d=google.com; s=arc-20160816; b=WhrHhwmUWJp+PjESWnPVFXszJ9FmOaig8aNeONI4UUH7orCflwC2pA3EKptYPYz/em y7cxBP6ZmCusXatdZx7DLAbbdqB/irODHNx5wdgI+2vkI6TriOtYRZO1g9b5QnNvpdof AXSY/XTVysq6G/JHDRRgPg2TUG5vIZl5W/gHgM5sDn8DmpMRwoR4L6yXPs9NtM7AUExh Hg0YyZWHQJTB9yE+h3Vom5PKcvDw4UxASX9jrE03OopKkWPL2QiACo+yTEvBI2ALJwx1 8dcOhqoHhgmiWFRWMonXWBni+qmvzvF+lciyldO659AQgVbUHd6svymOmTYpcQk+bE1h 9qGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=k98sWdO68hx5cn1qkFvsQewMzmHZwvEuYK8fIrwz9kE=; b=QalnJyTjJY3rb89ar5u+6EaYvCLcW+iJu3of7oCmAZlZ4J0juwgtXKu3rVhyx2u9xk lXb1TNNMHyv5PizLg2D031YR9/R9SF3KEGg+9nHwGB7OkCvbhsa211dvQWc3pkiMpv82 fhJzk7kSm4HSSrk/HM/CpVuBjoYKgG5fuL67+zI3GCCxb2ed/9G7TEpolZSUs8p548mq xC3J1vIa3zyCE8Skw72FgtMp3LMnVZ2PZkVoZTJTvA0WyLnyLItVyDcP1eGR/7u0L2Ic b0fUwxdbZnOpb3RVbRQr8HgkUO62mq8oW1rMkkMNIM3//XMOZMCv8PMPwNnb5BU8ogq3 RoNA== 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 l13-v6si9388014pff.261.2018.06.23.09.58.10; Sat, 23 Jun 2018 09:58:24 -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 S1751814AbeFWQ53 (ORCPT + 99 others); Sat, 23 Jun 2018 12:57:29 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43840 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbeFWQ52 (ORCPT ); Sat, 23 Jun 2018 12:57:28 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fWlqO-0007IL-7h; Sat, 23 Jun 2018 18:57:00 +0200 Date: Sat, 23 Jun 2018 18:56:59 +0200 (CEST) From: Thomas Gleixner To: Pavel Tatashin cc: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux@armlinux.org.uk, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, john.stultz@linaro.org, sboyd@codeaurora.org, x86@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, hpa@zytor.com, douly.fnst@cn.fujitsu.com, peterz@infradead.org, prarit@redhat.com, feng.tang@intel.com, pmladek@suse.com, gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org Subject: Re: [PATCH v12 11/11] x86/tsc: use tsc early In-Reply-To: <20180621212518.19914-12-pasha.tatashin@oracle.com> Message-ID: References: <20180621212518.19914-1-pasha.tatashin@oracle.com> <20180621212518.19914-12-pasha.tatashin@oracle.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Jun 2018, Pavel Tatashin wrote: > /* > * Scheduler clock - returns current time in nanosec units. > */ > @@ -1354,6 +1364,7 @@ void __init tsc_early_delay_calibrate(void) > lpj = tsc_khz * 1000; > do_div(lpj, HZ); > loops_per_jiffy = lpj; > + sched_clock_early_init(tsc_khz); > } > > void __init tsc_init(void) > @@ -1382,6 +1393,7 @@ void __init tsc_init(void) > if (!tsc_khz) { > mark_tsc_unstable("could not calculate TSC khz"); > setup_clear_cpu_cap(X86_FEATURE_TSC_DEADLINE_TIMER); > + static_branch_disable(&__use_tsc); This wants a proper comment. > return; > } Thanks, tglx