From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH v9 08/15] sched/topology: Make Energy Aware Scheduling depend on schedutil Date: Thu, 22 Nov 2018 16:49:04 +0100 Message-ID: References: <20181119141857.8625-1-quentin.perret@arm.com> <20181119141857.8625-9-quentin.perret@arm.com> <20181122140432.GH2113@hirez.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20181122140432.GH2113@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org To: Peter Zijlstra , Quentin Perret Cc: "Rafael J. Wysocki" , Linux Kernel Mailing List , Linux PM , Greg Kroah-Hartman , Ingo Molnar , Dietmar Eggemann , Morten Rasmussen , Chris Redpath , Patrick Bellasi , Valentin Schneider , Vincent Guittot , Thara Gopinath , Viresh Kumar , Todd Kjos , Joel Fernandes , Steve Muckle , adharmap@codeaurora.org, Saravana Kannan , Pavan Kondeti List-Id: linux-pm@vger.kernel.org On Thu, Nov 22, 2018 at 3:05 PM Peter Zijlstra wrote: > > On Mon, Nov 19, 2018 at 02:18:50PM +0000, Quentin Perret wrote: > > + if (rd->pd) > > + pr_warn("rd %*pbl: Disabling EAS, schedutil is mandatory\n", > > + cpumask_pr_args(cpu_map)); > > + goto free; > > I would have preferred just not allowing the governor to change at all, > but if you want to allow that, this is, I suppose, the best you can do. > > Rafael, are you otherwise OK with the grubbing inside cpufreq? Sort of. :-) I would put the sched_cpufreq_governor_change() header (and the static inline stub of it) into linux/cpufreq.h (instead of linux/sched/cpufreq.h) so that cpufreq.c doesn't have to include linux/sched/cpufreq.h which is kind of confusing. Apart from that the changes are fine by me.