PM / core: Re-structure code for clearing the direct_complete flag
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Jan 2018 09:03:39 +0000 (10:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Jan 2018 12:13:56 +0000 (13:13 +0100)
commitc23bd3877bc21d830fa650570fc1a88bea82ecd2
treef076c4ae68cca001db0402078dc6cc1db4eba01a
parent02e45646d53bdb38bfb47b83765778d3ecb4d3b3
PM / core: Re-structure code for clearing the direct_complete flag

To make the code more consistent, let's clear the parent's direct_complete
flag along with clearing it for suppliers, instead of as currently, when
propagating the wakeup_path flag to parents.

While changing this, let's take the opportunity to rename the affected
internal functions, to make them self-explanatory. Like this:

dpm_clear_suppliers_direct_complete -> dpm_clear_superiors_direct_complete
dpm_propagate_to_parent -> dpm_propagate_wakeup_to_parent

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