]> git.baikalelectronics.ru Git - kernel.git/commit
PM / runtime: Optimize the use of device links
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 30 Oct 2016 16:32:43 +0000 (17:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 17:42:51 +0000 (11:42 -0600)
commit548e4e2250ab4dc9b726e72606b5ff4affa3932a
tree51a4d0c63734bdd7923c025e9ed4e0dd537e3c76
parent4c7e7b6bd1f76e04781d0ef76f69dd04b319baba
PM / runtime: Optimize the use of device links

If the device has no links to suppliers that should be used for
runtime PM (links with DEVICE_LINK_PM_RUNTIME set), there is no
reason to walk the list of suppliers for that device during
runtime suspend and resume.

Add a simple mechanism to detect that case and possibly avoid the
extra unnecessary overhead.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
drivers/base/power/runtime.c
include/linux/pm.h
include/linux/pm_runtime.h