projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee061da
)
PM / QoS: Fix writing 'auto' to pm_qos_latency_tolerance_us
author
Andrew Lutomirski
<luto@kernel.org>
Wed, 30 Nov 2016 01:11:51 +0000
(17:11 -0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 30 Nov 2016 21:34:23 +0000
(22:34 +0100)
If it was already 'auto', then writing 'auto' again would
incorrectly fail.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/qos.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/power/qos.c
b/drivers/base/power/qos.c
index 7f3646e459cbacd399c6ac7520dd1e37aa2bcb10..6a1f2c7e01eacd04bd197065c15361636c7de291 100644
(file)
--- a/
drivers/base/power/qos.c
+++ b/
drivers/base/power/qos.c
@@
-856,7
+856,10
@@
int dev_pm_qos_update_user_latency_tolerance(struct device *dev, s32 val)
struct dev_pm_qos_request *req;
if (val < 0) {
- ret = -EINVAL;
+ if (val == PM_QOS_LATENCY_TOLERANCE_NO_CONSTRAINT)
+ ret = 0;
+ else
+ ret = -EINVAL;
goto out;
}
req = kzalloc(sizeof(*req), GFP_KERNEL);