Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751584Ab2KMGdg (ORCPT ); Tue, 13 Nov 2012 01:33:36 -0500 Received: from perches-mx.perches.com ([206.117.179.246]:47382 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750779Ab2KMGdf (ORCPT ); Tue, 13 Nov 2012 01:33:35 -0500 Message-ID: <1352788416.24230.6.camel@joe-AO722> Subject: Re: [PATCH 3/3] PM: Introduce Intel PowerClamp Driver From: Joe Perches To: Jacob Pan 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 Date: Mon, 12 Nov 2012 22:33:36 -0800 In-Reply-To: <1352757831-5202-4-git-send-email-jacob.jun.pan@linux.intel.com> References: <1352757831-5202-1-git-send-email-jacob.jun.pan@linux.intel.com> <1352757831-5202-4-git-send-email-jacob.jun.pan@linux.intel.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.0-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 55 On Mon, 2012-11-12 at 14:03 -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. style trivia: [] > diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel_powerclamp.c [] > + > +/* #define DEBUG */ > + Adding this #define before any #include #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > +#include > +#include [] > +static int window_size_set(const char *arg, const struct kernel_param *kp) > +{ [] > + if (new_window_size >= 10 || new_window_size < 2) { > + pr_err("PowerClamp: invalid window size %lu, between 2-10\n", > + new_window_size); Means there's no need for "PowerClamp: " prefixes with pr_fmt pr_err("invalid window size %lu... and all the other pr_ uses get prefixed too. > +static u64 pkg_state_counter(void) > +{ > + u64 val; > + u64 count = 0; > + > + static int skip_c2; > + static int skip_c3; > + static int skip_c6; > + static int skip_c7; bool? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/