Răsfoiți Sursa

PM / Runtime: Clarify comment in rpm_resume() when resuming the parent

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Ulf Hansson 8 ani în urmă
părinte
comite
216ef0b6b8
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      drivers/base/power/runtime.c

+ 2 - 2
drivers/base/power/runtime.c

@@ -713,8 +713,8 @@ static int rpm_resume(struct device *dev, int rpmflags)
 
 
 		spin_lock(&parent->power.lock);
 		spin_lock(&parent->power.lock);
 		/*
 		/*
-		 * We can resume if the parent's runtime PM is disabled or it
-		 * is set to ignore children.
+		 * Resume the parent if it has runtime PM enabled and not been
+		 * set to ignore its children.
 		 */
 		 */
 		if (!parent->power.disable_depth
 		if (!parent->power.disable_depth
 		    && !parent->power.ignore_children) {
 		    && !parent->power.ignore_children) {