]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM: core: Annotate loops walking device links as _srcu
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 2 Sep 2025 13:43:50 +0000 (15:43 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 6 Sep 2025 15:16:06 +0000 (17:16 +0200)
commitfdd9ae23bb989fa9ed1beebba7d3e0c82c7c81ae
tree86026656fc1f759d2c2faca6e4bd0e230f77a81f
parentb320789d6883cc00ac78ce83bccbfe7ed58afcf0
PM: core: Annotate loops walking device links as _srcu

Since SRCU is used for the protection of device link lists, the loops
over device link lists in multiple places in drivers/base/power/main.c
and in pm_runtime_get_suppliers() should be annotated as _srcu rather
than as _rcu which is the case currently.

Change the annotations accordingly.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2393512.ElGaqSPkdT@rafael.j.wysocki
drivers/base/power/main.c
drivers/base/power/runtime.c