Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp614484ybi; Thu, 30 May 2019 04:05:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5zIVnl20P2nVF33a/gaSnUMI2Q/IuOU4K8NBiKS73LC9NwPapwkjrtmCeOSLMLPKu3XHO X-Received: by 2002:a62:7d10:: with SMTP id y16mr3159120pfc.116.1559214330250; Thu, 30 May 2019 04:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559214330; cv=none; d=google.com; s=arc-20160816; b=ZPP43KSmGeORGPSxz905MFXoYbx+7feFx2FPUIWF3TdEdO5xdbadDndPGM8J/vKa4g Bb2DeURHQ1CfDpYQH9rDFy8ToAcj5/MIvUNib9Ouce87fBDlorDjNGaKc47xmJPmoNaw XwYgwbmWLtSsEdYKTzTvVEgZLvQfDHP77sWWiG4NTTVsEPZotbnuOucYYqVFg0NSNUWR S6qK+eLjPLuWovGMEEk3TVjtPjy1vzZ+dZJF/WCiRR1bw+DqH/TAyv7W7JrygTo73ee1 IRlZVPViisGgwoztXxuvXO65CqTPl+VXgaV7gXfhnwJeWnj1A/xatlDI7yOvOJPmTSAJ Hl0g== 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:dkim-signature; bh=S/cb0m9xHhDHoKqKMiFimQZjtq/GGyzkBYH+5P+CN/0=; b=Ct102ZZH32K37HIsmS0+ZJgZLiVJpZt5SIU8+nZnIjmajPIi/vk5x3v7sOs2A8muMJ uaU4/uJqMroggI8jKcb3uvSmAAucqivdNkB4AzebB3BcLIIvw4EbbkpuoIappFJLCR/j X8GcI373Xpfl909F3npm9aTdbG8fDL7PLkWk0wv9mqqXUYsIu/Mn+z6iXnwbXw49+vNs 5zdkz38ZP0gfj3Nk0TwFr55FyQuA/HIq7lft8wf1itXFFxyrPHMgdUCFTHcKq4AyrPCw V/l6qu+xPaEJOKtH0rWZDuxVAEtInVKfIUPdTwFBF9di3eBsxEZprncwp7y0712s4vhQ EGEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zs+87dXY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si2015362pjt.103.2019.05.30.04.05.13; Thu, 30 May 2019 04:05:30 -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; dkim=pass header.i=@linaro.org header.s=google header.b=zs+87dXY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726666AbfE3LEC (ORCPT + 99 others); Thu, 30 May 2019 07:04:02 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:47007 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfE3LEC (ORCPT ); Thu, 30 May 2019 07:04:02 -0400 Received: by mail-pf1-f196.google.com with SMTP id y11so3709113pfm.13 for ; Thu, 30 May 2019 04:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=S/cb0m9xHhDHoKqKMiFimQZjtq/GGyzkBYH+5P+CN/0=; b=zs+87dXY2uJHWUUk2UltFW9vWu7zXdUEpIxMKXcJPx8VZByqt6q5b8MmoQqAiPBIs0 rbhatuc4l5So1hpFoZOObOs+vi3UzRzxLYi8EZ98U+3THxPaAGcpEGyfNVZSJL4LPKHJ KusupP2XA6wpIcYHn2evj4cWgrFh2GDjPpQNPwNn2cjECO2MkLAMRWej5ICmCRiowIGh VrSlwUfeUy0Fi4/oBaS5iHv9Mt5jgI1duviHzObo/RhV8t/0U1OWEno2LskN1A3wWthg ZfL8/Ic/lST3aXrc4TJ0MEPLD/L6TtCmHJHEydra4VrBEeC9CpaPSkQfsxvUXv81Crme Dwbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=S/cb0m9xHhDHoKqKMiFimQZjtq/GGyzkBYH+5P+CN/0=; b=S6p63aY9u43TTeV2Jpf85Q9ummwoAF0zzdM2SmkAOT3A47Axs5+nixOSw2hJXWRsmV lPcY7o52coWXgSIZA3mp2mruvBG/yqGsZBoqxh/EEZ/xGMMfJT35LF+KXToAmvnL/yKA rSaYIB+FjJlbGDNq66FcHaUH6XJImMVqMheVixc0jiZWcp3uCyTjBdlWpX9RrTcO4QZk 867UJDEJv8tpTILORfRuiwOxfD3ExTVbJQhN6aBjkfxieTBwS/tRLYLmifZTAO8Tx1/h dgadqpKEfLY/VUlmdG10fnZQGV8Rdcpf4TLSq/Pwf+AQnZHngWNvTtsrNPHwgVuZqPtP eBnw== X-Gm-Message-State: APjAAAX0DDopoa6pqxaunrFrGd/g0knbabYGZtEUtNCowcqIx+QSyirp facYJ7ZpskvvrmH5wwvMTDSxwA== X-Received: by 2002:a62:e10f:: with SMTP id q15mr3069680pfh.56.1559214241664; Thu, 30 May 2019 04:04:01 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id r44sm2250083pjb.13.2019.05.30.04.03.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 04:03:58 -0700 (PDT) Date: Thu, 30 May 2019 16:33:56 +0530 From: Viresh Kumar To: Quentin Perret 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: <20190530110356.vet2exwowdbm4umq@vireshk-i7> References: <20190530092038.12020-1-quentin.perret@arm.com> <20190530092038.12020-3-quentin.perret@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190530092038.12020-3-quentin.perret@arm.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- viresh