]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: runtime: Introduce one more usage counter guard
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 1 Oct 2025 17:34:29 +0000 (19:34 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Oct 2025 19:09:54 +0000 (21:09 +0200)
commit384b52ce32110db974d3b61d463af48347eb73fb
treed68d34a5b4e4dd704bbab5fa8cca373abd02e5bc
parentd5e58ce1fb0f13a9a0845851f267ede3551cd9fe
PM: runtime: Introduce one more usage counter guard

Follow previous commit 9a0abc39450a ("PM: runtime: Add auto-cleanup
macros for "resume and get" operations") and define a runtime PM
usage counter guard in which pm_runtime_get_noresume() and
pm_runtime_put_noidle() will be used for incrementing and
decrementing it, respectively.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameorn@huawei.com>
include/linux/pm_runtime.h