From: Michael Ellerman Subject: Re: [PATCH v6 3/5] cpuidle:powernv: Add helper function to populate powernv idle states. Date: Mon, 30 Jan 2017 22:17:50 +1100 Message-ID: <87efzkx0dd.fsf@concordia.ellerman.id.au> References: <1485333389-5752-1-git-send-email-ego@linux.vnet.ibm.com> <1485333389-5752-4-git-send-email-ego@linux.vnet.ibm.com> <871svlxl7w.fsf@concordia.ellerman.id.au> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Rafael J. Wysocki" Cc: "Gautham R. Shenoy" , 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 , Rob Herring , linuxppc-dev , Linux Kernel Mailing List , Linux PM , "devicetree@vger.kernel.org" , Mark List-Id: devicetree@vger.kernel.org "Rafael J. Wysocki" writes: > On Mon, Jan 30, 2017 at 4:47 AM, Michael Ellerman wrote: >> "Gautham R. Shenoy" writes: >> >>> 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. >>> >>> Acked-by: Balbir Singh >>> Signed-off-by: Gautham R. Shenoy >>> --- >>> drivers/cpuidle/cpuidle-powernv.c | 89 +++++++++++++++++++++++---------------- >>> include/linux/cpuidle.h | 1 + >> >> I was going to merge this, but I see you've touched cpuidle.h, so I feel >> like I should get an ACK from the cpuidle folks. >> >> It's a fairly uncontroversial change, but it's their API. > > OK, please add an ACK from me to it then. Thanks. cheers -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html