From mboxrd@z Thu Jan 1 00:00:00 1970 From: Balbir Singh Subject: Re: [PATCH v5 3/5] cpuidle:powernv: Add helper function to populate powernv idle states. Date: Thu, 12 Jan 2017 15:34:58 +0530 Message-ID: <20170112100458.GD3006@localhost.localdomain> References: <1484039224-5630-1-git-send-email-ego@linux.vnet.ibm.com> <1484039224-5630-4-git-send-email-ego@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1484039224-5630-4-git-send-email-ego@linux.vnet.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" To: "Gautham R. Shenoy" Cc: Stewart Smith , devicetree@vger.kernel.org, Michael Neuling , linux-pm@vger.kernel.org, "Shreyas B. Prabhu" , Daniel Lezcano , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Rob Herring , Paul Mackerras , Shilpasri G Bhat , Oliver O'Halloran , mark.rutland@arm.com, linuxppc-dev@lists.ozlabs.org List-Id: linux-pm@vger.kernel.org On Tue, Jan 10, 2017 at 02:37:02PM +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > In the current code for powernv_add_idle_states, there is a lot of code > duplication while initializing an idle state in powernv_states table. > > Add an inline helper function to populate the powernv_states[] table > for a given idle state. Invoke this for populating the "Nap", > "Fastsleep" and the stop states in powernv_add_idle_states. > > Signed-off-by: Gautham R. Shenoy > -- Acked-by: Balbir Singh