]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM / devfreq: Fix handling dev_pm_qos_remove_request result
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 12 Mar 2020 15:36:06 +0000 (17:36 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 24 Mar 2020 23:35:03 +0000 (08:35 +0900)
commit4c6abef7b46204d2db790b209e799162f39112d0
tree6ee3217a640eedc0a324088e2d52fbc91a05f13e
parent3bb5ee9aaa34617845a8fc0e0be9cf99139cbc2e
PM / devfreq: Fix handling dev_pm_qos_remove_request result

The dev_pm_qos_remove_request function can return 1 if
"aggregated constraint value has changed" so only negative values should
be reported as errors.

Fixes: 27dbc542f651 ("PM / devfreq: Use PM QoS for sysfs min/max_freq")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c