Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933661AbdCURAb (ORCPT ); Tue, 21 Mar 2017 13:00:31 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60994 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933657AbdCURA3 (ORCPT ); Tue, 21 Mar 2017 13:00:29 -0400 Date: Tue, 21 Mar 2017 18:00:17 +0100 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: Patrick Bellasi , 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: <20170321170017.tqxcwmtolsqkc4ui@hirez.programming.kicks-ass.net> References: <4366682.tsferJN35u@aspire.rjw.lan> <1844525.jBn1oKmyb6@aspire.rjw.lan> <20170321150403.GU3093@worktop> <2131318.dozmYt7JVU@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2131318.dozmYt7JVU@aspire.rjw.lan> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 436 Lines: 12 On Tue, Mar 21, 2017 at 04:18:52PM +0100, Rafael J. Wysocki wrote: > +static bool sugov_cpu_is_busy(struct sugov_cpu *sg_cpu) > +{ > + unsigned long idle_calls = tick_nohz_get_idle_calls(); > + bool not_idle = idle_calls == sg_cpu->saved_idle_calls; > + > + sg_cpu->saved_idle_calls = idle_calls; > + return not_idle && this_rq()->rd->overload; > +} So I really don't understand the rd->overload thing. What is it supposed to do here?