PM: domains: Implement the ->set_performance_state() callback for genpd
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Sep 2023 13:17:08 +0000 (15:17 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 6 Oct 2023 07:07:33 +0000 (12:37 +0530)
commit401e09201a01183f1cc8533aa956cb837bf6d3da
treead47fba9604188467be1876cdc91cf8864175de3
parent3fbc5c3b8522d655cf91d32c158261060fdc02fe
PM: domains: Implement the ->set_performance_state() callback for genpd

To enable generic support for performance scaling for PM domains, let's
implement the ->set_performance_state() callback for genpd.

Beyond this change, users of the corresponding genpd specific API,
dev_pm_genpd_set_performance_state() are encouraged to switch to the common
dev_pm_domain_set_performance_state() API.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/base/power/domain.c