From: Rafael J. Wysocki Date: Mon, 11 Jul 2011 22:40:03 +0000 (+0200) Subject: PM / Domains: Queue up power off work only if it is not pending X-Git-Tag: v3.1-rc1~304^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56375fd420f851944960bd53dbb08d674f4d9406;p=pandora-kernel.git 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 --- Reading git-diff-tree failed