diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-19 02:22:39 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-19 22:58:27 +0200 |
commit | 157c460e10cb6eca29ccbd0f023db159d0c55ec7 (patch) | |
tree | 06c2ceb8529ac64bf6e90ea315fe261ec989883e /tools/perf/scripts/python | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) |
PM: core: Fix device_pm_check_callbacks()
The device_pm_check_callbacks() function doesn't check legacy
->suspend and ->resume callback pointers under the device's
bus type, class and driver, so in some cases it may set the
no_pm_callbacks flag for the device incorrectly and then the
callbacks may be skipped during system suspend/resume, which
shouldn't happen.
Fixes: aa8e54b55947 (PM / sleep: Go direct_complete if driver has no callbacks)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: 4.5+ <stable@vger.kernel.org> # 4.5+
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions