]> git.baikalelectronics.ru Git - kernel.git/commit
PM / runtime: Update links_count also if !CONFIG_SRCU
authorLukas Wunner <lukas@wunner.de>
Sat, 10 Feb 2018 18:13:58 +0000 (19:13 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Feb 2018 10:12:58 +0000 (11:12 +0100)
commitab1bee03dd57115e59a79df1030e3836171f26e1
tree6472311b17585f19b1e9ca9a25333a4428860b6f
parent0edd71972f57c848302474700e732773bde57708
PM / runtime: Update links_count also if !CONFIG_SRCU

Commit 7c0bde6aeec9 (PM / runtime: Optimize the use of device links)
added an invocation of pm_runtime_drop_link() to __device_link_del().
However there are two variants of that function, one for CONFIG_SRCU and
another for !CONFIG_SRCU, and the commit only modified the former.

Fixes: 7c0bde6aeec9 (PM / runtime: Optimize the use of device links)
Cc: v4.10+ <stable@vger.kernel.org> # v4.10+
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/core.c