PM: domains: Fixup QoS latency measurements for IRQ safe devices in genpd
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 May 2022 14:56:59 +0000 (16:56 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 May 2022 18:16:05 +0000 (20:16 +0200)
commita294237aea122daa646f02e461877d553439c529
tree19ce898ac3d76b3c4063ca81a7d68e810cf7cfd4
parent3b84bf3ce94dea82a9451a4c9c2cda37e334333c
PM: domains: Fixup QoS latency measurements for IRQ safe devices in genpd

When an IRQ safe device is attached to a non-IRQ safe PM domain, genpd
needs to prevent the PM domain from being powered off. However, genpd still
allows the device to be runtime suspended/resumed, hence it's also
reasonable to think that a governor may be used to validate the QoS latency
constraints.

Unfortunately, genpd_runtime_resume() treats the configuration above, as a
reason to skip measuring the QoS resume latency for the device. This is a
legacy behaviour that was earlier correct, but should have been changed
when genpd was transformed into its current behaviour around how it manages
IRQ safe devices. Luckily, there's no report about problems, so let's just
fixup the behaviour.

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