From: "Rafael J. Wysocki" Subject: Re: [PATCH][V2] cpuidle: simplify multiple driver support Date: Wed, 05 Jun 2013 15:03:40 +0200 Message-ID: <11636841.b3MnnSDuMT@vostro.rjw.lan> References: <1369227904-16234-1-git-send-email-daniel.lezcano@linaro.org> <3656140.hejcxbMi3x@vostro.rjw.lan> <51AEF479.3070607@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from hydra.sisk.pl ([212.160.235.94]:58374 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753098Ab3FEMyh (ORCPT ); Wed, 5 Jun 2013 08:54:37 -0400 In-Reply-To: <51AEF479.3070607@linaro.org> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Daniel Lezcano Cc: patches@linaro.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org, Len Brown On Wednesday, June 05, 2013 10:19:05 AM Daniel Lezcano wrote: > On 05/28/2013 11:28 PM, Rafael J. Wysocki wrote: > > On Tuesday, May 28, 2013 11:08:13 PM Daniel Lezcano wrote: > >> On 05/22/2013 03:05 PM, Daniel Lezcano wrote: > >>> Commit bf4d1b5ddb78f86078ac6ae0415802d5f0c68f92 brought the multiple driver > >>> support. The code added a couple of new API to register the driver per cpu. > >>> That led to some code complexity to handle the kernel config options when > >>> the multiple driver support is enabled or not, which is not really necessary. > >>> The code has to be compatible when the multiple driver support is not enabled, > >>> and the multiple driver support has to be compatible with the old api. > >>> > >>> This patch removes this API, which is not yet used by any driver but needed > >>> for the HMP cpuidle drivers which will come soon, and replaces its usage > >>> by a cpumask pointer in the cpuidle driver structure telling what cpus are > >>> handled by the driver. That let the API cpuidle_[un]register_driver to be used > >>> for the multipled driver support and also the cpuidle_[un]register functions, > >>> added recently in the cpuidle framework. > >>> > >>> The current code, a bit poor in comments, has been commented and simplified. > >>> > >>> Signed-off-by: Daniel Lezcano > >>> --- > >>> > >>> [V2]: > >>> - fixed bad refcount check > >>> - inverted clockevent notify off order at unregister time > >> Hi Rafael, > >> > >> could you consider this patch for merging ? I took into account > >> Francesco's comments. > > I'm waiting for Len to have a look at it which may take a few days more. > > Ok, is it possible to queue the patch for 3.11 now ? Actually, can you please separate adding kerneldoc comments from functional changes? That'd make the patch(es) easier to grasp. Thanks, Rafael -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.