aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/devtmpfs.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-12-17 20:16:02 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-12-22 18:37:55 +0100
commit50a4606655582f310b3f07c9492af9a72b40003b (patch)
tree8e12bb6a33e5a4ebb454a24832756f64cf6fd065 /drivers/base/devtmpfs.c
parentMerge back PM core changes for v5.17. (diff)
downloadlinux-dev-50a4606655582f310b3f07c9492af9a72b40003b.tar.xz
linux-dev-50a4606655582f310b3f07c9492af9a72b40003b.zip
PM: runtime: Simplify locking in pm_runtime_put_suppliers()
Notice that pm_runtime_put_suppliers() cannot be called with disabled interrupts, because it may sleep (due to the device links read locking in the non-SRCU case), and so it can use spin_lock_irq() and spin_unlock_irq() for the locking. Update the function accordingly and while at it move the "put" local variable in it into the inner block where it is used. This change is not expected to have any visible functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/base/devtmpfs.c')
0 files changed, 0 insertions, 0 deletions