Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3741464imm; Mon, 30 Jul 2018 02:36:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcshzZvNozmmty1TQR/QMcusyDP+8HE7DzYFNGjHJoxlKrsrymcibymBUOs29DdyquyWE+F X-Received: by 2002:a17:902:8d8c:: with SMTP id v12-v6mr15663687plo.94.1532943408664; Mon, 30 Jul 2018 02:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532943408; cv=none; d=google.com; s=arc-20160816; b=TH15XqHx5XZpnrf9WVuPHcrD7LbppnA8KW2GSjshQmwjkL3F4wfgiNrlNLTpzqW0/d x5XrOfl8n2fKzHedFzSatVzysZzmmW5fwrTuhpRNUfyhMAu3ncH2YXtWSMzCErGQHVxf RRsz5dI0L0n4Oz89UBpiYGPOQSbWbUOzTt3yE1rFHc29V5UjIsd1/aMygLvvnFr/FwTg dMyAAMcmnY2VPV9HSYBLv3obIqxnbGXFQcLEJKRA10LC68v2QejDaRyZoQbsBfCLawSH +x5if8qYj27xhnEgaKTMrASVtVJV+2HWg5hfR3N/kktlpODGdd9SjCmY5hf44Ok3kdqe pnmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=QxJVwW5CT1HZphHLVJUfGch8UWK5OsAjAakDbbNJ9Gw=; b=UYoc5c6gbOXkNhpbt6LI1OgTUHSZsVqO+AVfwVAJyfvM+08Mf7P0ewc2KU3QUEWtje fXqybfOb6JzEoWUykWosQ4KYZrtBlRxYPCcuMxAEcaH3dOB4B+9O2txAKr0zmpIHH81m sHA5Zenn6Z2F1r68XRZIxDihz8Ns/dUmWD92Boq9uS3XvotraE/eW5RBbnepBMv+0Wl8 cLUjFQi+oGkVIyc836euO/kyRm/mYcPtni5TZoe4WAJPAo7EIRFU8R6xY9ZE8kTpgvBz A3nKYUBEUIsSRZ+hBMLLzjg6qJVx4DOGHOirt0x+cvYJ9r0RqXg3qrl527Kuk3p6z+AX gDEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rVMcchLO; 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 s36-v6si5453147pld.8.2018.07.30.02.36.34; Mon, 30 Jul 2018 02:36:48 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rVMcchLO; 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 S1727136AbeG3LJI (ORCPT + 99 others); Mon, 30 Jul 2018 07:09:08 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40932 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726723AbeG3LJI (ORCPT ); Mon, 30 Jul 2018 07:09:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QxJVwW5CT1HZphHLVJUfGch8UWK5OsAjAakDbbNJ9Gw=; b=rVMcchLO847nYBuy4vDa1sfmr qBP6OsbqgwbeHd2P4v3sMJtBhSmK3LCMoqVFzgoRrIye2+4IhbwGNPXs+KOifcHQQa68dnxrfuwps F3/lJftQailW2auuXDELWV8sFcVcpkHAOZNJ1JPYTSoCowZVb1715i4Dy967+2QMqTAJ+5ZYGm4Gf Sbtej/l2qXSfWFjbigMHE3Lx3tshxgtpmmSdwLHQDeRSVfrpUUD+1Ji24g1o3ex065AZkgTOj1wla Eim0FXg229yjI1PiGgCakKHv26tAXls9y9GEe8VBwgJDe6CxrdPc45jap5tPKWs67bQP8BKad+3WC YszWJa9Qg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fk4Zl-0005Mi-Bv; Mon, 30 Jul 2018 09:34:49 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 04C9320298BC3; Mon, 30 Jul 2018 11:34:48 +0200 (CEST) Date: Mon, 30 Jul 2018 11:34:47 +0200 From: Peter Zijlstra To: Dou Liyang Cc: linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, Pavel Tatashin Subject: Re: [PATCH 1/2] x86/tsc: Avoid a double call if TSC initializes earlier. Message-ID: <20180730093447.GF2494@hirez.programming.kicks-ass.net> References: <20180730075421.22830-1-douly.fnst@cn.fujitsu.com> <20180730075421.22830-2-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730075421.22830-2-douly.fnst@cn.fujitsu.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 30, 2018 at 03:54:20PM +0800, Dou Liyang wrote: > static_branch_enable(&__use_tsc) may be called twice in common case, that > is redundant. It is also really not a problem...