aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-03-20 12:07:22 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-20 12:07:22 +0100
commit3e582cca5fc671b622ec6c5358d731fe9a055c7a (patch)
tree863f8ef730b27bc611f0a3a8620f297b1dc0b9bb
parent4fdccf0f77ddee9507f5981eaf69647e46820687 (diff)
downloadhda-emu-3e582cca5fc671b622ec6c5358d731fe9a055c7a.tar.gz
Add more pm_runtime_*() definitions
-rw-r--r--include/linux/pm_runtime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h
index 4091ea9..4cbc2d1 100644
--- a/include/linux/pm_runtime.h
+++ b/include/linux/pm_runtime.h
@@ -4,6 +4,7 @@
#include <linux/device.h>
static inline void pm_runtime_enable(struct device *dev) {}
+static inline void pm_runtime_disable(struct device *dev) {}
static inline void pm_runtime_set_active(struct device *dev) {}
static inline void pm_runtime_set_autosuspend_delay(struct device *dev, int delay) {}
static inline void pm_runtime_use_autosuspend(struct device *dev) {}
@@ -13,6 +14,8 @@ static inline void pm_runtime_mark_last_busy(struct device *dev) {}
static inline bool pm_runtime_suspended(struct device *dev) { return dev->pmsuspended; }
static inline void pm_runtime_get_noresume(struct device *dev) { dev->pmcnt++; }
+static inline void pm_runtime_put_noidle(struct device *dev) { dev->pmcnt--; }
+
int pm_runtime_get_sync(struct device *dev);
int pm_runtime_put_autosuspend(struct device *dev);
int pm_runtime_force_suspend(struct device *dev);