From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Pan Subject: Re: [PATCH v4 3/3] PM: Introduce Intel PowerClamp Driver Date: Thu, 3 Jan 2013 07:03:48 -0800 Message-ID: <20130103070348.59b89cf7@jacob-desktop> References: <1357210875-5025-1-git-send-email-jacob.jun.pan@linux.intel.com> <1357210875-5025-4-git-send-email-jacob.jun.pan@linux.intel.com> <1357241654.5452.16.camel@joe-AO722> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com ([134.134.136.20]:55380 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753770Ab3ACXEC (ORCPT ); Thu, 3 Jan 2013 18:04:02 -0500 In-Reply-To: <1357241654.5452.16.camel@joe-AO722> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Joe Perches Cc: Linux PM , LKML , Rafael Wysocki , Len Brown , Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , Zhang Rui , Rob Landley , Arjan van de Ven , Paul McKenney , Peter Zijlstra On Thu, 03 Jan 2013 11:34:14 -0800 Joe Perches wrote: > On Thu, 2013-01-03 at 03:01 -0800, Jacob Pan wrote: > > Intel PowerClamp driver performs synchronized idle injection across > > all online CPUs. The goal is to maintain a given package level > > C-state ratio. > > just trivia: > > > diff --git a/drivers/thermal/intel_powerclamp.c > > b/drivers/thermal/intel_powerclamp.c > > > +static int clamping; > > bool and use true/false? sure. will change in v5 > > > +static int window_size_set(const char *arg, const struct > > kernel_param *kp) > [] > > + if (new_window_size >= 10 || new_window_size < 2) { > > + pr_err("Invalid window size %lu, between 2-10\n", > > + new_window_size); > > This is a misleading message or a bad test, > It's from 2 to 9 > > This would more normally be tested/written as > > val < low || val > high > will change to make the range match error message, between 2 to 10. Thanks, Jacob