PM / OPP: add non-OF versions of dev_pm_opp_{cpumask_, }remove_table
authorSudeep Holla <Sudeep.Holla@arm.com>
Tue, 3 May 2016 14:05:04 +0000 (15:05 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 May 2016 23:38:44 +0000 (01:38 +0200)
commit411466c5081d2f649b3583cae0f6c9ad5edec636
treece07767ac0e4c5f1e5371e336819aa47598ae31e
parentddbb74bc70c0dbaab85d1aa2564b0b3217267454
PM / OPP: add non-OF versions of dev_pm_opp_{cpumask_, }remove_table

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

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c
drivers/base/power/opp/cpu.c
include/linux/pm_opp.h