Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1352964imm; Wed, 18 Jul 2018 23:28:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdNS3H/27YavAUS/0Ohmq486J2FAOf2QmHDGflv7sNtKWP9y5DZEpSiTvW/yu/hoo9xizS3 X-Received: by 2002:a17:902:6f02:: with SMTP id w2-v6mr8608054plk.216.1531981687998; Wed, 18 Jul 2018 23:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531981687; cv=none; d=google.com; s=arc-20160816; b=p+DJr6UE9075dnCqTp6PNOJu2/bF1DzrPA2ogfs3HpvDN4btbk60YFGfc793O2UoIi fF9HT6vxmPN3ZmIE/4V/nUZeLVVRg+K9lTyvGW5LxWgh67wuU2B1lNWn123V/767USqu rbpWaPlNNDssn3d3w0citfMAdjFuL3gsKUKrEjJaa8hhDO8sxqguAX+B4zRyDKKbTP1N jkK/XXuCv9NT7xGaTLGegpsC7es0gv1jIbbHkkN8qOuqc64fwEp6PyKXgcLu1/Etea8s u7IFiuiiazcLB39uqQ3gE/I8CZ2kqtdMEkZh/innDVelvxe/W8eTaMGxTDf7EYvI+wo/ aQPw== 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=AmXXzt94iHS59szz+GmX/P1NOiMGGeVVs+vlq88xEuw=; b=RQfYu+frvaVOXsO2Qj4YEZRvcK/yHUykZkMna06cCcmvJJs6ssHKGhLCtq+IhohlGL lsp1CFimxsmVWP7SPsihLMHIYmQgbXeiq8Wo4f7YR6VK9KNup0lQRFxHGyTMuNAs7P3k /vDpOFbyYBIT/cfWqGN2yqMNMOyt9WbNtWuLH0cgmaJr4+iM01ul5UUgVd1WyRRzjHq7 NXws0Id+OpBadTMt7geoL4406JUpk05YE2VMQD1BmQeYdRPA/5HySLCb39m++1rP1h9f rA69DPrHVJCpmYuoAzEsBtvBGZWDlYclyhReo26WlP6054cw8VdvkE6Qtyek3KxjtFoc Xh0A== 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 p12-v6si4534387pls.53.2018.07.18.23.27.31; Wed, 18 Jul 2018 23:28:07 -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 S1731254AbeGSHHl (ORCPT + 99 others); Thu, 19 Jul 2018 03:07:41 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60210 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbeGSHHl (ORCPT ); Thu, 19 Jul 2018 03:07:41 -0400 Received: from p4fea5a5a.dip0.t-ipconnect.de ([79.234.90.90] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fg2NT-0001oZ-Dc; Thu, 19 Jul 2018 08:25:27 +0200 Date: Thu, 19 Jul 2018 08:25:26 +0200 (CEST) From: Thomas Gleixner To: Dou Liyang cc: Pavel Tatashin , 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, peterz@infradead.org, prarit@redhat.com, feng.tang@intel.com, pmladek@suse.com, gnomes@lxorguk.ukuu.org.uk, linux-s390@vger.kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, pbonzini@redhat.com Subject: Re: [PATCH v14 20/25] x86/tsc: calibrate tsc only once In-Reply-To: <4f0933a3-27b4-5468-83f5-af9b90842812@cn.fujitsu.com> Message-ID: References: <20180718022211.6259-1-pasha.tatashin@oracle.com> <20180718022211.6259-21-pasha.tatashin@oracle.com> <4f0933a3-27b4-5468-83f5-af9b90842812@cn.fujitsu.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, 19 Jul 2018, Dou Liyang wrote: > At 07/18/2018 10:22 AM, Pavel Tatashin wrote: > > + (unsigned long)cpu_khz % KHZ); > > if (cpu_khz != tsc_khz) { > > pr_info("Detected %lu.%03lu MHz TSC", > > - (unsigned long)tsc_khz / 1000, > > - (unsigned long)tsc_khz % 1000); > > + (unsigned long)tsc_khz / KHZ, > > + (unsigned long)tsc_khz % KHZ); > > + } > > this curly brackets can be removed No. They want to stay, really. https://lkml.kernel.org/r/alpine.DEB.2.20.1701171956290.3645@nanos The pr_info() is a multiline statement due to the line breaks. Thanks, tglx