]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit354eb4da1bf39782050c7df4b746362ac3d7ab86
tree2b5ffc4ae1191e1c110004562455617e60d8a1e9
parentce1c8ff730a9d52cea6c427c4d2fbd6de7a3061a
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: e37c732aa29d ("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