]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: runtime: Introduce pm_runtime_blocked()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 18 Feb 2025 20:13:09 +0000 (21:13 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 18 Feb 2025 20:43:06 +0000 (21:43 +0100)
commit758cc55ce3d5d79e8f98adbd03ad2cd29133af33
tree605ad2bf4ed4992c1cbd5f8d4112f2c2d06cd651
parent3e5eee147b7b0f5a93f56beffe34e81fdd00fa0d
PM: runtime: Introduce pm_runtime_blocked()

Introduce a new helper function called pm_runtime_blocked()
for checking the power.last_status value indicating whether or not
enabling runtime PM for the given device has been blocked (which
happens in the "prepare" phase of system-wide suspend if runtime
PM is disabled for the given device at that point).

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://patch.msgid.link/4632087.LvFx2qVVIh@rjwysocki.net
drivers/base/power/runtime.c
include/linux/pm_runtime.h