PM / runtime: Check ignore_children in pm_runtime_need_not_resume()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Jan 2018 00:46:25 +0000 (01:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Jan 2018 16:21:19 +0000 (17:21 +0100)
commit1f5c6855260141ac3115e9a065491ee2ac07f9bc
treeab0ab3f9402da055ed0f56d6c23dfbe9cd715c96
parent4918e1f87c5fb7fc8f73a7d8fb118beeb94e05f7
PM / runtime: Check ignore_children in pm_runtime_need_not_resume()

Modify pm_runtime_need_not_resume() to make it avoid taking
power.child_count for devices with power.ignore_children which
is consistent with the runtime PM usage of these fields.

Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/power/runtime.c