From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754953Ab3KTTi2 (ORCPT ); Wed, 20 Nov 2013 14:38:28 -0500 Received: from www.linutronix.de ([62.245.132.108]:35632 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753797Ab3KTTiZ (ORCPT ); Wed, 20 Nov 2013 14:38:25 -0500 Date: Wed, 20 Nov 2013 20:38:03 +0100 (CET) From: Thomas Gleixner To: Arjan van de Ven cc: Peter Zijlstra , lenb@kernel.org, rjw@rjwysocki.net, Eliezer Tamir , Chris Leech , David Miller , rui.zhang@intel.com, jacob.jun.pan@linux.intel.com, Mike Galbraith , Ingo Molnar , hpa@zytor.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: [PATCH 3/7] idle, thermal, acpi: Remove home grown idle implementations In-Reply-To: <528CFDB1.3020300@linux.intel.com> Message-ID: References: <20131120160450.072555619@infradead.org> <20131120162736.508462614@infradead.org> <528CE611.8040903@linux.intel.com> <528CF028.2040002@linux.intel.com> <528CFDB1.3020300@linux.intel.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Nov 2013, Arjan van de Ven wrote: > > but for powerclamp to work, it needs to inject a deep idle.... I'm > very ok using generic abstractions for that, but the abstraction > needs to then include a "don't be nice about picking shallow C > states for performance reasons, just pick something very deep" > parameter. And that's what you should have done in the first place. Make the generic code take a parameter to indicate that. Or tell the scheduler to throttle the machine and go deep idle. That would also be helpful to others who might need some similar thing. No, you went with the worst design: - Hack it into some random driver - Export random core interfaces so it's harder to change them - Let others deal with the fallout I'm cleaning up that kind of mess for more than 9 years now and I'm really disappointed that you went over to the "who cares, works for me" camp. I can lively remember our discussions when we were cleaning up the whole timer mess together in order to make NOHZ actually useful. Your cursing about such code was definitely impressive back then. Thanks, tglx