diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-02-27 13:56:12 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-03-03 15:43:21 +0300 |
commit | d2677d57d4b8ec63da8f51357bcf855c4cf47c78 (patch) | |
tree | 963344ec3f8c791eebc89aa5aa2d9140e395d801 /tools/perf/scripts/python/libxed.py | |
parent | 258e231dc29fbd72bc82c16859a8304f71780ba2 (diff) | |
download | linux-d2677d57d4b8ec63da8f51357bcf855c4cf47c78.tar.xz |
PM: runtime: Drop status check from pm_runtime_force_resume()
Since pm_runtime_force_resume() requires pm_runtime_force_suspend() to
be called before it on the same device, the runtime PM status of the
device is RPM_SUSPENDED when it is called unless the device's runtime
PM status is changed somewhere else in the meantime.
However, even if that happens, the power.needs_force_resume
check is still required to pass and that flag is only set by
pm_runtime_force_suspend() once and it is cleared at the end of
pm_runtime_force_resume(), so it cannot be taken into account
twice in a row.
According to the above, the pm_runtime_status_suspended(dev) check in
pm_runtime_force_resume() is redundant, so drop it.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/2309120.iZASKD2KPV@rjwysocki.net
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions