From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH v3 2/2] thermal: cpu_cooling: use power models from the OPP library Date: Mon, 22 Jan 2018 10:41:26 +0530 Message-ID: <20180122051126.GD2421@vireshk-i7> References: <20180119094549.5468-1-quentin.perret@arm.com> <20180119094549.5468-3-quentin.perret@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pg0-f43.google.com ([74.125.83.43]:47023 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbeAVFL3 (ORCPT ); Mon, 22 Jan 2018 00:11:29 -0500 Received: by mail-pg0-f43.google.com with SMTP id s9so6228623pgq.13 for ; Sun, 21 Jan 2018 21:11:29 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Joel Fernandes Cc: Quentin Perret , Linux PM , "Rafael J. Wysocki" , vireshk@kernel.org, nm@ti.com, sboyd@codeaurora.org, sudeep.holla@arm.com, amit.kachhap@gmail.com, javi.merino@kernel.org, rui.zhang@intel.com, edubezval@gmail.com, matthias.bgg@gmail.com, Dietmar Eggemann , Morten Rasmussen , Patrick Bellasi , Ionela Voinescu , Todd Kjos On 19-01-18, 15:15, Joel Fernandes wrote: > > - if (capacitance) { > > - ret = update_freq_table(cpufreq_cdev, capacitance); > > - if (ret) { > > - cdev = ERR_PTR(ret); > > - goto remove_ida; > > - } > > - > > - cooling_ops = &cpufreq_power_cooling_ops; > > - } else { > > - cooling_ops = &cpufreq_cooling_ops; > also don't unnecessarily call > dev_pm_opp_find_freq_ceil in update_freq_table. He would need that anyway as he needs to get the real power numbers. -- viresh