Searched hist:"56375 fd4" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/base/power/ |
H A D | domain.c | 56375fd4 Mon Jul 11 17:40:03 CDT 2011 Rafael J. Wysocki <rjw@sisk.pl> PM / Domains: Queue up power off work only if it is not pending
In theory it is possible that pm_genpd_poweroff() for two different subdomains of the same parent domain will attempt to queue up the execution of pm_genpd_poweroff() for the parent twice in a row. This would lead to unpleasant consequences, so prevent it from happening by checking if genpd->power_off_work is pending before attempting to queue it up.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> 56375fd4 Mon Jul 11 17:40:03 CDT 2011 Rafael J. Wysocki <rjw@sisk.pl> PM / Domains: Queue up power off work only if it is not pending In theory it is possible that pm_genpd_poweroff() for two different subdomains of the same parent domain will attempt to queue up the execution of pm_genpd_poweroff() for the parent twice in a row. This would lead to unpleasant consequences, so prevent it from happening by checking if genpd->power_off_work is pending before attempting to queue it up. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
|