From dbb32306ea1c978f4a396cc9bdf39f9086f5098d Mon Sep 17 00:00:00 2001 From: "Rafael J. Wysocki" Date: Thu, 3 Dec 2009 21:04:08 +0100 Subject: [PATCH] --- yaml --- r: 172351 b: refs/heads/master c: e1b1903eee71c5fa6063bbf713cfc947e76c4e04 h: refs/heads/master i: 172349: 87395521790d3f9e330105b786c32cbebb31c7a8 172347: 6efd8518141a953107030e185306d56e9c64cd7e 172343: f505c09d956ea8bf0265231445a45b6534d7ac28 172335: 41ba9cf13c90df0c2611ae16c5cec1b6e3f2ed49 172319: a6150d59bd747d4ef784470ab925ca54cac2f3b5 172287: f95a71c45e4727f6d3e87027a383d0209cd61fa7 v: v3 --- [refs] | 2 +- trunk/Documentation/power/runtime_pm.txt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 99bb6e5b9cbe..32e19e3fd83c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0ddf0ed1d47e2d4170fa2989273886a1df66a862 +refs/heads/master: e1b1903eee71c5fa6063bbf713cfc947e76c4e04 diff --git a/trunk/Documentation/power/runtime_pm.txt b/trunk/Documentation/power/runtime_pm.txt index f49a33b704d2..6bb25cb24da9 100644 --- a/trunk/Documentation/power/runtime_pm.txt +++ b/trunk/Documentation/power/runtime_pm.txt @@ -38,7 +38,7 @@ struct dev_pm_ops { ... int (*runtime_suspend)(struct device *dev); int (*runtime_resume)(struct device *dev); - void (*runtime_idle)(struct device *dev); + int (*runtime_idle)(struct device *dev); ... }; @@ -114,7 +114,8 @@ The action performed by a bus type's ->runtime_idle() callback is totally dependent on the bus type in question, but the expected and recommended action is to check if the device can be suspended (i.e. if all of the conditions necessary for suspending the device are satisfied) and to queue up a suspend -request for the device in that case. +request for the device in that case. The value returned by this callback is +ignored by the PM core. The helper functions provided by the PM core, described in Section 4, guarantee that the following constraints are met with respect to the bus type's run-time