Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp637596ybi; Thu, 30 May 2019 04:27:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ8WJR3zfLj0SnAzQZ6w2J+iYFy/aVnQDKjMe3cf+KVV0D6QgLIrv+zePLfX9S7cHPYmAf X-Received: by 2002:a17:90a:5d0a:: with SMTP id s10mr3249385pji.94.1559215628985; Thu, 30 May 2019 04:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559215628; cv=none; d=google.com; s=arc-20160816; b=q9eyRQ3Bv58B9CRt3NENhENTT0fbf+YAz2y/TljDeeDxS/r3AbNN3r6LglAr0TUOw3 xqJ66IPpA6mSHT7Z6/IVExt7qB68TUqVXWi40jYNVLBF+fnUU8LkEV2rpLp7t7I6Ckpn qT5FGHptjExJuDQpUV+zZJ+hBnCot87ts7IMbJlTwOUo63aS6EI6LlkMDO1m/7LYFTFf yjaWn+YJPvYCD3iIlv5KV57gRXK1aUiXv81bb4r/oPaIxkJ+U9Im3CR60rsDMCHV54h8 WBWgOw3y9BnkivGUCxYN+1o2Le6n/W7nGJtQxuM2RmLcWPqJW3foAvjnp1Ob4cnMnJ5E TWYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RDnlaKtBqQpKKCZL7u7OsicPakWuESl0TleNQ/wqJX0=; b=RL8Y4HxBXgWLnSBjOidfievQ4xuDVc68VPQZc//ff+qLGEZkk5Z58Nbp3nEluTjeUD AQhEyVztWrkeKXIBsZP8AciSqm1k0UZWaGLVL6X+Gj12JOUBL7trdtkuVz/6fyHbIcFg iiFk14FAIeJSoOLg6l2sBy9nv7MuGZnqXRX1U7NfAqBeBy/rVe/MkZc3lN8Dii5E8oEv yrrn/qZpjLWyHBedFYgXXQ7hId/vElhPlZr6ePQD5UBxCW7upli4xHEDqn03XVVG6Its IU8oqRgQx2glv5EhDa7YM0G4wpqyt7qjswq2vbcZzMFniPl7IZr/qqdwtIaqazTUNumP 0w4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si2823912pgi.78.2019.05.30.04.26.53; Thu, 30 May 2019 04:27:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726818AbfE3LYt (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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