Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932765AbdCUPSw (ORCPT ); Tue, 21 Mar 2017 11:18:52 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:38482 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932283AbdCUPSt (ORCPT ); Tue, 21 Mar 2017 11:18:49 -0400 Date: Tue, 21 Mar 2017 16:18:27 +0100 From: Peter Zijlstra To: Patrick Bellasi Cc: "Rafael J. Wysocki" , Vincent Guittot , Linux PM , LKML , Srinivas Pandruvada , Viresh Kumar , Juri Lelli , Joel Fernandes , Morten Rasmussen , Ingo Molnar Subject: Re: [RFC][PATCH v2 2/2] cpufreq: schedutil: Avoid decreasing frequency of busy CPUs Message-ID: <20170321151827.GW3093@worktop> References: <4366682.tsferJN35u@aspire.rjw.lan> <3429350.K2FUBgvcIK@aspire.rjw.lan> <20170321143842.GE11054@e110439-lin> <1844525.jBn1oKmyb6@aspire.rjw.lan> <20170321150820.GF11054@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170321150820.GF11054@e110439-lin> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 408 Lines: 14 Seriously people, trim your replies. On Tue, Mar 21, 2017 at 03:08:20PM +0000, Patrick Bellasi wrote: > And than we can move this bit into an inline function, something like e.g.: > > static inline bool sugov_this_cpu_is_busy() > { > return this_rq()->rd->overloaded > } No, that's just entirely and utterly wrong. It being in rd means its very much not about _this_ CPU in any way.