From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vBnXf2Ww3zDq5W for ; Mon, 30 Jan 2017 22:41:22 +1100 (AEDT) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0UBcdre063438 for ; Mon, 30 Jan 2017 06:41:20 -0500 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0a-001b2d01.pphosted.com with ESMTP id 28a2r8waku-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 30 Jan 2017 06:41:19 -0500 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 30 Jan 2017 04:41:19 -0700 Date: Mon, 30 Jan 2017 17:11:05 +0530 From: Gautham R Shenoy To: Michael Ellerman Cc: "Rafael J. Wysocki" , "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 Rutland Subject: Re: [PATCH v6 3/5] cpuidle:powernv: Add helper function to populate powernv idle states. Reply-To: ego@linux.vnet.ibm.com 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> <87efzkx0dd.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <87efzkx0dd.fsf@concordia.ellerman.id.au> Message-Id: <20170130114105.GA4290@in.ibm.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Jan 30, 2017 at 10:17:50PM +1100, Michael Ellerman wrote: > "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. Thanks Rafael and Michal. > > cheers > -- Thanks and Regards gautham.