Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp764902yba; Wed, 15 May 2019 09:32:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxYfwnW+EC+Y9TkmRPDyNQP5Ytra5qjq47qcTWsa8pIRdyS3HrDTlWsLWv+q3xLF9wYpxH X-Received: by 2002:a63:ff23:: with SMTP id k35mr14864052pgi.139.1557937925297; Wed, 15 May 2019 09:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557937925; cv=none; d=google.com; s=arc-20160816; b=1EE4Q4IEiQQTmKEDeJWR+xCXVFtENnCgb8+uuFH7jXaaqbz5MIswUWE30P5Ht/ZiKD LEM9iLIxGXpw2CP2T8umeE37kN83CkrAgUnZ0p0qPJGTdfNPENd/SkWrarN9rXQfQ8cA GAD72P1DpbNKE7Yqm04bbfwyhlUoOw5KzACPfIWG2YOluYGxBqF5Vgo2v1UTOO/Fh+Z0 RwdrshEch/f6bR2atx8F/lMfrkyJ/+sAR/HEF2mTc9JRDUxIMRqcCjdZyH0omoCrQs1n Dncjh/ItiMWn/QLkReROCZ0g3Gp8dfSbpS2r3nWVP081+aDmGcGQ38o3Io60hab9VXBR upCA== 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; bh=iqC6CeL/gxHhvp7zGCJh7Pt4372ukcVo1rwpC9g39hs=; b=G2DG2aiyNGhxIKgWF+067ce8ULKU4Try1nnb28lfsGe27QiPgr2H7MClLYyHm+itmW FBEn8C7RwAAoROLgvoDjHhbg9cEWUYMaDcXJoYXL8qxm/Nxm2vyy1THEVXT3dX1GM+lR imOS10HGHMfgCf1PsPrlEtzWUF19wHcYA5KXBS2Sx8R/oA9QiCdaw3cv3q4d9n0liMtq EpL+2//SAdTTDOk8wMJh9IBX6U1r5S8Jv/dzz3/FMP1tmI6A53Xvgxol5e9I93EGJl94 PQ+rw6C7fWPIqzUPBbBig0zCm6HC+2DaqeHiSeL/uC3K1gu3hROJaHVTqVM4nS8PrhHy C7xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=kjWJ4gIg; 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 h5si794734plt.232.2019.05.15.09.31.50; Wed, 15 May 2019 09:32:05 -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=kjWJ4gIg; 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 S1726811AbfEOQao (ORCPT + 99 others); Wed, 15 May 2019 12:30:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:48680 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbfEOQan (ORCPT ); Wed, 15 May 2019 12:30:43 -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=iqC6CeL/gxHhvp7zGCJh7Pt4372ukcVo1rwpC9g39hs=; b=kjWJ4gIgFz5Fl3ZzlM6FqJ2/r uZRk2dmvid4fb4D/tIyu6ucpkaNqlkaSOtrXXhnBF/CEc3lyeLJARiCj/jSV8bnIY8lp2UWPkdadw f9HRvx+o55tTH3+JJBt1aSFo584dSdoMQieGu/lww/Vw2crAV9rvrGxs1z2bhGFWyIhJyDTMqdGax Crjvat00lpwdaZXBUBFJ583CLTe2wIDNcnSWDmIpHufNqebH85DDml4PaAKGxOlP9J0GvIeQFkJnv VxO5A52zJeeb/XV7y+d3j6kJGFMWUrKmhGb9UH3GNN+KhcRH3Mk4v7jRTsWWaP78w+O4pcIwsdpsy mNuYGekaw==; 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 1hQwna-0001C3-3c; Wed, 15 May 2019 16:30:34 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5D0642029906B; Wed, 15 May 2019 18:30:32 +0200 (CEST) Date: Wed, 15 May 2019 18:30:32 +0200 From: Peter Zijlstra To: Parth Shah Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, dietmar.eggemann@arm.com, dsmythies@telus.net Subject: Re: [RFCv2 2/6] sched: Introduce switch to enable TurboSched mode Message-ID: <20190515163032.GU2589@hirez.programming.kicks-ass.net> References: <20190515135322.19393-1-parth@linux.ibm.com> <20190515135322.19393-3-parth@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190515135322.19393-3-parth@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 15, 2019 at 07:23:18PM +0530, Parth Shah wrote: > +void turbo_sched_get(void) > +{ > + spin_lock(&turbo_sched_lock); > + if (!turbo_sched_count++) > + static_branch_enable(&__turbo_sched_enabled); > + spin_unlock(&turbo_sched_lock); > +} Muwhahaha, you didn't test this code, did you?