From: Ingo Molnar Subject: Re: [PATCH RFC 0/4] Scheduler idle notifiers and users Date: Thu, 9 Feb 2012 08:51:06 +0100 Message-ID: <20120209075106.GB18387@elte.hu> References: <20120208013959.GA24535@panacea> <1328670355.2482.68.camel@laptop> <20120208202314.GA28290@redhat.com> <1328736834.2903.33.camel@pasglop> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1328736834.2903.33.camel@pasglop> Sender: cpufreq-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Benjamin Herrenschmidt Cc: Dave Jones , Peter Zijlstra , Anton Vorontsov , Russell King , Oleg Nesterov , "Paul E. McKenney" , Nicolas Pitre , Mike Chan , Todd Poynor , cpufreq@vger.kernel.org, kernel-team@android.com, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arjan Van De Ven * Benjamin Herrenschmidt wrote: > On Wed, 2012-02-08 at 15:23 -0500, Dave Jones wrote: > > I think the biggest mistake we ever made with cpufreq was making it > > so configurable. If we redesign it, just say no to plugin governors, > > and > > yes to a lot fewer sysfs knobs. > > > > So, provide mechanism to kill off all the governors, and there's a > > migration path from what we have now to something that just works > > in a lot more cases, while remaining configurable enough for the > > corner-cases. > > On the other hand, the need for schedulable contxts may not > necessarily go away. We will support it, but the *sane* hw solution is where frequency transitions can be done atomically. Most workloads change their characteristics very quickly, and so does their power management profile change. The user-space driven policy model failed for that reason: it was *way* too slow in reacting) - and slow hardware transitions suck for a similar reason as well. We accomodate all hardware as well as we can, but we *design* for proper hardware. So Peter is right, this should be done properly. Thanks, Ingo