OSDN Git Service

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)
commit433986c2c265d106d6a8e88006e0131fefc92b7b
tree6472311b17585f19b1e9ca9a25333a4428860b6f
parent69728051f5bf15efaf6edfbcfe1b5a49a2437918
PM / runtime: Update links_count also if !CONFIG_SRCU

Commit baa8809f6097 (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: baa8809f6097 (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