From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87F1AC28CC0 for ; Thu, 30 May 2019 11:24:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6541F25832 for ; Thu, 30 May 2019 11:24:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbfE3LYt (ORCPT ); Thu, 30 May 2019 07:24:49 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34574 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfE3LYt (ORCPT ); Thu, 30 May 2019 07:24:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F33D6374; Thu, 30 May 2019 04:24:48 -0700 (PDT) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7343E3F5AF; Thu, 30 May 2019 04:24:46 -0700 (PDT) Date: Thu, 30 May 2019 12:24:44 +0100 From: Quentin Perret To: Viresh Kumar Cc: edubezval@gmail.com, rui.zhang@intel.com, javi.merino@kernel.org, amit.kachhap@gmail.com, rjw@rjwysocki.net, will.deacon@arm.com, catalin.marinas@arm.com, daniel.lezcano@linaro.org, dietmar.eggemann@arm.com, ionela.voinescu@arm.com, mka@chromium.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 2/3] thermal: cpu_cooling: Make the power-related code depend on IPA Message-ID: <20190530112442.kywpbophjkv2j2tq@queper01-lin> References: <20190530092038.12020-1-quentin.perret@arm.com> <20190530092038.12020-3-quentin.perret@arm.com> <20190530110356.vet2exwowdbm4umq@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190530110356.vet2exwowdbm4umq@vireshk-i7> User-Agent: NeoMutt/20171215 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Thursday 30 May 2019 at 16:33:56 (+0530), Viresh Kumar wrote: > On 30-05-19, 10:20, Quentin Perret wrote: > > The core CPU cooling infrastructure has power-related functions > > that have only one client: IPA. Since there can be no user of those > > functions if IPA is not compiled in, make sure to guard them with > > checks on CONFIG_THERMAL_GOV_POWER_ALLOCATOR to not waste space > > unnecessarily. > > > > Suggested-by: Daniel Lezcano > > Signed-off-by: Quentin Perret > > --- > > drivers/thermal/cpu_cooling.c | 214 +++++++++++++++++----------------- > > 1 file changed, 104 insertions(+), 110 deletions(-) > > Acked-by: Viresh Kumar Thanks ! Quentin