diff options
Diffstat (limited to 'drivers/base/power/main.c')
-rw-r--r-- | drivers/base/power/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index a85459126bc6..956443f86254 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/mutex.h> | 22 | #include <linux/mutex.h> |
23 | #include <linux/pm.h> | 23 | #include <linux/pm.h> |
24 | #include <linux/pm_runtime.h> | 24 | #include <linux/pm_runtime.h> |
25 | #include <linux/pm_qos.h> | ||
25 | #include <linux/resume-trace.h> | 26 | #include <linux/resume-trace.h> |
26 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
27 | #include <linux/sched.h> | 28 | #include <linux/sched.h> |
@@ -97,6 +98,7 @@ void device_pm_add(struct device *dev) | |||
97 | dev_name(dev->parent)); | 98 | dev_name(dev->parent)); |
98 | list_add_tail(&dev->power.entry, &dpm_list); | 99 | list_add_tail(&dev->power.entry, &dpm_list); |
99 | mutex_unlock(&dpm_list_mtx); | 100 | mutex_unlock(&dpm_list_mtx); |
101 | dev_pm_qos_constraints_init(dev); | ||
100 | } | 102 | } |
101 | 103 | ||
102 | /** | 104 | /** |
@@ -107,6 +109,7 @@ void device_pm_remove(struct device *dev) | |||
107 | { | 109 | { |
108 | pr_debug("PM: Removing info for %s:%s\n", | 110 | pr_debug("PM: Removing info for %s:%s\n", |
109 | dev->bus ? dev->bus->name : "No Bus", dev_name(dev)); | 111 | dev->bus ? dev->bus->name : "No Bus", dev_name(dev)); |
112 | dev_pm_qos_constraints_destroy(dev); | ||
110 | complete_all(&dev->power.completion); | 113 | complete_all(&dev->power.completion); |
111 | mutex_lock(&dpm_list_mtx); | 114 | mutex_lock(&dpm_list_mtx); |
112 | list_del_init(&dev->power.entry); | 115 | list_del_init(&dev->power.entry); |