diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-02-17 23:44:58 +0100 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-22 16:21:19 -0800 |
commit | 6cbf82148ff286ec22a55be6836c3a5bffc489c1 (patch) | |
tree | 77b1b0097f9c2389d56734ec4c022611aa1bd9db /kernel/power | |
parent | 552be54cc4232dc5acc49ccb372129d6f1b6923f (diff) | |
download | blackbird-op-linux-6cbf82148ff286ec22a55be6836c3a5bffc489c1.tar.gz blackbird-op-linux-6cbf82148ff286ec22a55be6836c3a5bffc489c1.zip |
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/power')
-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 and the bus type drivers of the buses the devices are on are responsible for the actual handling of the autosuspend requests and wake-up events. + +config PM_OPS + bool + depends on PM_SLEEP || PM_RUNTIME + default y |