From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz Subject: Re: [PATCH V2 10/11] opp: Add helpers for initializing CPU OPPs Date: Mon, 27 Jul 2015 18:37:08 +0200 Message-ID: <2526828.VLyJR8Xy8B@amdc1976> References: <8bc35e1fd3ac581f2b96929e331c01d1287aca27.1437972635.git.viresh.kumar@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Return-path: In-reply-to: <8bc35e1fd3ac581f2b96929e331c01d1287aca27.1437972635.git.viresh.kumar@linaro.org> Sender: linux-kernel-owner@vger.kernel.org To: Viresh Kumar Cc: Rafael Wysocki , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, rob.herring@linaro.org, arnd.bergmann@linaro.org, nm@ti.com, broonie@kernel.org, mturquette@baylibre.com, sboyd@codeaurora.org, Sudeep.Holla@arm.com, viswanath.puttagunta@linaro.org, l.stach@pengutronix.de, thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, ta.omasab@gmail.com, kesavan.abhilash@gmail.com, khilman@linaro.org, santosh.shilimkar@oracle.com, Greg Kroah-Hartman , Len Brown , open list , Pavel Machek List-Id: linux-pm@vger.kernel.org Hi, On Monday, July 27, 2015 10:32:40 AM Viresh Kumar wrote: > With "operating-points-v2" its possible to tell which devices share > OPPs. We already have infrastructure to decode that information. > > This patch adds following APIs: > - of_get_cpus_sharing_opps: Returns cpumask of CPUs sharing OPPs (only > valid with v2 bindings). > - of_cpumask_init_opp_table: Initializes OPPs for all CPUs present in > cpumask. > - of_cpumask_free_opp_table: Frees OPPs for all CPUs present in cpumask. > > - set_cpus_sharing_opps: Sets which CPUs share OPPs (only valid with old > OPP bindings, as this information isn't present in DT). > > Signed-off-by: Viresh Kumar Reviewed-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics