diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-08-08 17:43:50 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-08-25 09:33:45 -0400 |
commit | 17877eb5a900f32bb5827a7b2109b6c9adff5fc3 (patch) | |
tree | 40071b242874b486e8a5fdc36b0bdf0ba9ccbe00 /drivers/base/power/domain.c | |
parent | 5063ce1571b73865cbdcd92db002e85809750c97 (diff) |
PM / Domains: Rename GPD_STATE_WAIT_PARENT to GPD_STATE_WAIT_MASTER
Since it is now possible for a PM domain to have multiple masters
instead of one parent, rename the "wait for parent" status to reflect
the new situation.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base/power/domain.c')
-rw-r--r-- | drivers/base/power/domain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 8fc538da1de0..c06f8f8717b9 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -98,7 +98,7 @@ int __pm_genpd_poweron(struct generic_pm_domain *genpd) | |||
98 | for (;;) { | 98 | for (;;) { |
99 | prepare_to_wait(&genpd->status_wait_queue, &wait, | 99 | prepare_to_wait(&genpd->status_wait_queue, &wait, |
100 | TASK_UNINTERRUPTIBLE); | 100 | TASK_UNINTERRUPTIBLE); |
101 | if (genpd->status != GPD_STATE_WAIT_PARENT) | 101 | if (genpd->status != GPD_STATE_WAIT_MASTER) |
102 | break; | 102 | break; |
103 | mutex_unlock(&genpd->lock); | 103 | mutex_unlock(&genpd->lock); |
104 | 104 | ||
@@ -124,7 +124,7 @@ int __pm_genpd_poweron(struct generic_pm_domain *genpd) | |||
124 | */ | 124 | */ |
125 | list_for_each_entry(link, &genpd->slave_links, slave_node) { | 125 | list_for_each_entry(link, &genpd->slave_links, slave_node) { |
126 | genpd_sd_counter_inc(link->master); | 126 | genpd_sd_counter_inc(link->master); |
127 | genpd->status = GPD_STATE_WAIT_PARENT; | 127 | genpd->status = GPD_STATE_WAIT_MASTER; |
128 | 128 | ||
129 | mutex_unlock(&genpd->lock); | 129 | mutex_unlock(&genpd->lock); |
130 | 130 | ||
@@ -258,7 +258,7 @@ static void __pm_genpd_restore_device(struct dev_list_entry *dle, | |||
258 | */ | 258 | */ |
259 | static bool genpd_abort_poweroff(struct generic_pm_domain *genpd) | 259 | static bool genpd_abort_poweroff(struct generic_pm_domain *genpd) |
260 | { | 260 | { |
261 | return genpd->status == GPD_STATE_WAIT_PARENT | 261 | return genpd->status == GPD_STATE_WAIT_MASTER |
262 | || genpd->status == GPD_STATE_ACTIVE || genpd->resume_count > 0; | 262 | || genpd->status == GPD_STATE_ACTIVE || genpd->resume_count > 0; |
263 | } | 263 | } |
264 | 264 | ||
@@ -300,7 +300,7 @@ static int pm_genpd_poweroff(struct generic_pm_domain *genpd) | |||
300 | * (4) System suspend is in progress. | 300 | * (4) System suspend is in progress. |
301 | */ | 301 | */ |
302 | if (genpd->status == GPD_STATE_POWER_OFF | 302 | if (genpd->status == GPD_STATE_POWER_OFF |
303 | || genpd->status == GPD_STATE_WAIT_PARENT | 303 | || genpd->status == GPD_STATE_WAIT_MASTER |
304 | || genpd->resume_count > 0 || genpd->prepared_count > 0) | 304 | || genpd->resume_count > 0 || genpd->prepared_count > 0) |
305 | return 0; | 305 | return 0; |
306 | 306 | ||