OSDN Git Service

PM: domains: Improve runtime PM performance state handling
authorDmitry Osipenko <digetx@gmail.com>
Mon, 23 Aug 2021 20:24:12 +0000 (23:24 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Aug 2021 18:15:54 +0000 (20:15 +0200)
commit3c5a272202c28c1f9309566f206ba40787246149
tree2b5ffc4ae1191e1c110004562455617e60d8a1e9
parente22ce8eb631bdc47a4a4ea7ecf4e4ba499db4f93
PM: domains: Improve runtime PM performance state handling

GENPD core doesn't support handling performance state changes while
consumer device is runtime-suspended or when runtime PM is disabled.
GENPD core may override performance state that was configured by device
driver while RPM of the device was disabled or device was RPM-suspended.

Let's close that gap by allowing drivers to control performance state
while RPM of a consumer device is disabled and to set up performance
state of RPM-suspended device that will be applied by GENPD core on
RPM-resume of the device.

Fixes: 5937c3ce2122 ("PM: domains: Drop/restore performance state votes for devices at runtime PM")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c