From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935218AbdLSKpy (ORCPT ); Tue, 19 Dec 2017 05:45:54 -0500 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:55887 "EHLO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933165AbdLSKpt (ORCPT ); Tue, 19 Dec 2017 05:45:49 -0500 From: "Rafael J. Wysocki" To: Viresh Kumar Cc: Joel Fernandes , Patrick Bellasi , "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , Linux PM , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Linux Kernel Mailing List Subject: Re: [PATCH 2/4] sched: cpufreq: Keep track of cpufreq utilization update flags Date: Tue, 19 Dec 2017 11:44:58 +0100 Message-ID: <2751455.goTIWJZO51@aspire.rjw.lan> In-Reply-To: <20171219034118.GP19815@vireshk-i7> References: <20456740.6R3DDKEUDv@aspire.rjw.lan> <20171219034118.GP19815@vireshk-i7> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, December 19, 2017 4:41:18 AM CET Viresh Kumar wrote: > On 18-12-17, 19:30, Joel Fernandes wrote: > > Yes that's clean to me but then as Rafael said, the use of this flag > > will be too specific for schedutil-only sg_cpu->flags clearing purpose > > right? > > And so would be the extra parameter ? Right. I don't like the new parameter idea too much. "Clearing" flags are generally fine by me, but I want them to have a meaning for whoever who may receive them. I guess you can define the original CLEAR thing to mean "clear the RT and DL flags if you have saved them or ignore them if set here otherwise" and then intel_pstate can work as though it was called with the flags argument equal to zero (or just with IOWAIT set, but that never happens if CLEAR is set I guess). Still, IMO NO_DL and NO_RT would be conceptually more straightforward (clear X if NO_X is set or ignore NO_X otherwise). But anyway it is scheduler code and the scheduler maintainers haven't spoken up so far, so what I'm saying may just not matter. :-) Thanks, Rafael