Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp80362imm; Tue, 19 Jun 2018 16:21:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI0KKWf9OA7F2yHeJ8IDv2w4W/r1zAAG1XS3V/zGd4HLpBV8tDioUmT3qYOvXh+gwUn4ZwM X-Received: by 2002:a17:902:82cc:: with SMTP id u12-v6mr20914771plz.83.1529450489042; Tue, 19 Jun 2018 16:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529450489; cv=none; d=google.com; s=arc-20160816; b=DqvgWO9LHCIt+WzeRHQ2tMtW2jEKRuHeItheadWTCXRUf2tkjsP/Lfc88mLQqlOCDT SmF3W62Nqs6pq2XhJhjr5knQ2/pRdIaV0EB53M6YzFmxlJgpfuKzM09K5JqQXWvEQUD7 NvRpCb0fQ7+HIiuquFN6L+FzpnT/bt/VcsvLmBLjq3nKpcRAZ9lZosdvVlj00+7KsRi8 WgtLpikHiwYkE3IZ4bAec+Ekc3dt+c2NBP/6H2n2ETRzcwFXZXGosPraLqN8qPET+wsE axco43J2K5ybo1AzAhPTgNbl/TCh2PIU/JNwXIPozXv0JrBlX0aTGaJiRkVQh0T0m3ef PxuA== 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=BfxkFEijgvIj8eM7PTqvDEdDwv4gQROBmFJPYLzAuUo=; b=RfM0X/XgIBAGuTePluRVWonPPhtMk8kXqjCJLRU4z96iTvEMbj41Xww8bsGdOT0H89 vEDRnbkuVdChBkp9g7iWb3vaIier7T5lqLBYv/1XbhTHcQ5P2zz+Kb9O3rG0SeO+WzHA fNvi23UTE1E6VA6fmC3NN92v/nelDvbRCCE/KhujJsOYYN4CcnmGuFXgqw47Cn3xTTXy 0VkkbmtjJgbNGxoopQWmDvD+6D8j9+Ru96nKbrl1EYuaQ1qUISr4zYf8PdrDv/wLPAj6 cv6vv7DWSRP1OeR4bCevOWe0i+OxYZEjQuS9vwUKgTyFbb54Q/aLWCvNr/rp4HBAfbjR 5lEw== 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 z63-v6si603361pgb.456.2018.06.19.16.21.13; Tue, 19 Jun 2018 16:21:29 -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 S1751648AbeFSXU2 (ORCPT + 99 others); Tue, 19 Jun 2018 19:20:28 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:58558 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbeFSXUV (ORCPT ); Tue, 19 Jun 2018 19:20:21 -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 1fVPuu-00054j-2O; Wed, 20 Jun 2018 01:20:04 +0200 Date: Wed, 20 Jun 2018 01:20:03 +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 Subject: Re: [PATCH v10 7/7] x86/tsc: use tsc early In-Reply-To: <20180615174204.30581-8-pasha.tatashin@oracle.com> Message-ID: References: <20180615174204.30581-1-pasha.tatashin@oracle.com> <20180615174204.30581-8-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 Fri, 15 Jun 2018, Pavel Tatashin wrote: > cpu_khz = x86_platform.calibrate_cpu(); > @@ -1380,7 +1466,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); > - return; > + goto final_sched_clock; > } > > pr_info("Detected %lu.%03lu MHz processor\n", > @@ -1428,6 +1514,14 @@ void __init tsc_init(void) > > clocksource_register_khz(&clocksource_tsc_early, tsc_khz); > detect_art(); I'm pretty sure you missed at least one instance of 'return'. That's just error prone and any new exit path of tsc_init() adds another chance to miss it. Thanks, tglx