From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tzhFx12SWzDqHZ for ; Thu, 12 Jan 2017 21:05:09 +1100 (AEDT) Received: by mail-pf0-x241.google.com with SMTP id 127so2886250pfg.0 for ; Thu, 12 Jan 2017 02:05:09 -0800 (PST) From: Balbir Singh Date: Thu, 12 Jan 2017 15:34:58 +0530 To: "Gautham R. Shenoy" Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , "Rafael J. Wysocki" , Daniel Lezcano , Michael Neuling , Vaidyanathan Srinivasan , "Shreyas B. Prabhu" , Shilpasri G Bhat , Stewart Smith , Balbir Singh , Oliver O'Halloran , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , mark.rutland@arm.com Subject: Re: [PATCH v5 3/5] cpuidle:powernv: Add helper function to populate powernv idle states. 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 In-Reply-To: <1484039224-5630-4-git-send-email-ego@linux.vnet.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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