commit | baa8809f60971d10220dfe79248f54b2b265f003 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sun Oct 30 17:32:43 2016 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Oct 31 11:42:51 2016 -0600 |
tree | 51a4d0c63734bdd7923c025e9ed4e0dd537e3c76 | |
parent | 21d5c57b3726166421251e94dabab047baaf8ce4 [diff] |
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>