From: "Rafael J. Wysocki" Subject: Re: [PATCH 3/4] cpuidle: move enter_dead to the driver structure Date: Thu, 5 Jul 2012 22:40:57 +0200 Message-ID: <201207052240.57686.rjw@sisk.pl> References: <1341494608-16591-1-git-send-email-daniel.lezcano@linaro.org> <1341494608-16591-3-git-send-email-daniel.lezcano@linaro.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1341494608-16591-3-git-send-email-daniel.lezcano@linaro.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Daniel Lezcano Cc: linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org, linaro-dev@lists.linaro.org List-Id: linux-acpi@vger.kernel.org On Thursday, July 05, 2012, Daniel Lezcano wrote: > The 'enter_dead' function is only used for processor_idle.c > and the same function is used several times. We fall into the > same abuse with the multiple callbacks for the same function. This isn't abuse, mind you. This is a normal practice. > This patch fixes that by moving the 'enter_dead' function to the > driver structure. A flag CPUIDLE_FLAG_DEAD_VALID has been added > to handle the callback conditional invokation. And how does that improve things? Rafael