diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-02-17 17:44:58 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-22 19:21:19 -0500 |
commit | 6cbf82148ff286ec22a55be6836c3a5bffc489c1 (patch) | |
tree | 77b1b0097f9c2389d56734ec4c022611aa1bd9db /kernel | |
parent | 552be54cc4232dc5acc49ccb372129d6f1b6923f (diff) |
PCI PM: Run-time callbacks for PCI bus type
Introduce run-time PM callbacks for the PCI bus type. Make the new
callbacks work in analogy with the existing system sleep PM
callbacks, so that the drivers already converted to struct dev_pm_ops
can use their suspend and resume routines for run-time PM without
modifications.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 91e09d3b2eb2..4c9cffcf69c7 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
@@ -222,3 +222,8 @@ config PM_RUNTIME | |||
222 | and the bus type drivers of the buses the devices are on are | 222 | and the bus type drivers of the buses the devices are on are |
223 | responsible for the actual handling of the autosuspend requests and | 223 | responsible for the actual handling of the autosuspend requests and |
224 | wake-up events. | 224 | wake-up events. |
225 | |||
226 | config PM_OPS | ||
227 | bool | ||
228 | depends on PM_SLEEP || PM_RUNTIME | ||
229 | default y | ||