Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1390919

Re: [PATCH v2 1/2][UPDATE] PM / OPP: add non-OF versions of dev_pm_opp_{cpumask_,}remove_table

From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2][UPDATE] PM / OPP: add non-OF versions of dev_pm_opp_{cpumask_,}remove_table
Date 2016-04-29 11:30 +0200
Message-ID <rtcUh-3th-1@gated-at.bofh.it> (permalink)
References <rsXBV-7sB-11@gated-at.bofh.it> <rtcUh-3th-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This isn't V2, but V3

On 29-04-16, 10:22, Sudeep Holla wrote:
> Functions dev_pm_opp_of_{cpumask_,}remove_table removes/frees all the
> static OPP entries associated with the device and/or all cpus(in case
> of cpumask) that are created from DT.
> 
> However the OPP entries are populated reading from the firmware or some
> different method using dev_pm_opp_add are marked dynamic and can't be
> removed using above functions.
> 
> This patch adds non DT/OF versions of dev_pm_opp_{cpumask_,}remove_table
> to support the above mentioned usecase.
> 
> This is in preparation to make use of the same in scpi-cpufreq.c
> 
> Cc: Viresh Kumar <vireshk@kernel.org>
> Cc: Nishanth Menon <nm@ti.com>
> CC: Stephen Boyd <sboyd@codeaurora.org>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: linux-pm@vger.kernel.org
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
> ---
>  drivers/base/power/opp/core.c | 56 ++++++++++++++++++++++++++++++----------
>  drivers/base/power/opp/cpu.c  | 59 ++++++++++++++++++++++++++++++++-----------
>  include/linux/pm_opp.h        | 10 ++++++++
>  3 files changed, 96 insertions(+), 29 deletions(-)
> 
> v1->v2:
> 	- Instead of renaming OF versions, created non-OF versions of
> 	  dev_pm_opp_{cpumask_,}remove_table as suggested by Viresh
> 

You should have added v2->v3 here

> This version also updates all the errors in documentation and changes
> to use remove_all rather than remove_dyn.

But all that isn't going to be part of the history, so it should be fine :)

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] PM / OPP: add non-OF versions of dev_pm_opp_{cpumask_,}remove_table Sudeep Holla <sudeep.holla@arm.com> - 2016-04-28 19:10 +0200
  Re: [PATCH v2 1/2] PM / OPP: add non-OF versions of  dev_pm_opp_{cpumask_,}remove_table Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-29 06:10 +0200
    Re: [PATCH v2 1/2] PM / OPP: add non-OF versions of  dev_pm_opp_{cpumask_,}remove_table Sudeep Holla <sudeep.holla@arm.com> - 2016-04-29 11:30 +0200
  Re: [PATCH v2 1/2][UPDATE] PM / OPP: add non-OF versions of  dev_pm_opp_{cpumask_,}remove_table Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-29 11:30 +0200
    Re: [PATCH v2 1/2][UPDATE] PM / OPP: add non-OF versions of  dev_pm_opp_{cpumask_,}remove_table Sudeep Holla <sudeep.holla@arm.com> - 2016-04-29 11:40 +0200
      Re: [PATCH v2 1/2][UPDATE] PM / OPP: add non-OF versions of  dev_pm_opp_{cpumask_,}remove_table Viresh Kumar <viresh.kumar@linaro.org> - 2016-04-29 11:40 +0200
  [PATCH v2 1/2][UPDATE] PM / OPP: add non-OF versions of dev_pm_opp_{cpumask_,}remove_table Sudeep Holla <sudeep.holla@arm.com> - 2016-04-29 11:30 +0200

csiph-web