summaryrefslogtreecommitdiffstats
path: root/drivers/base/power
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2016-10-17 20:16:59 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-10-21 15:42:11 +0200
commit216ef0b6b8c7f041a618913e94da52c3fdf82a99 (patch)
treefc98333dc2e91e9df68fec4c710be1640a017911 /drivers/base/power
parentPM / Runtime: Remove the exported function pm_children_suspended() (diff)
downloadlinux-216ef0b6b8c7f041a618913e94da52c3fdf82a99.tar.xz
linux-216ef0b6b8c7f041a618913e94da52c3fdf82a99.zip
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>
Diffstat (limited to 'drivers/base/power')
-rw-r--r--drivers/base/power/runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
index 53b427dfc403..117db71e84cb 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -713,8 +713,8 @@ static int rpm_resume(struct device *dev, int rpmflags)
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
&& !parent->power.ignore_children) {