From: Viresh Kumar Date: Fri, 9 Aug 2019 02:31:17 +0000 (+0530) Subject: cpufreq: dev_pm_qos_update_request() can return 1 on success X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~4032^2^2~1 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=e61a41256edf9f425039129757af4a80b5ed8162;p=linux.git cpufreq: dev_pm_qos_update_request() can return 1 on success dev_pm_qos_update_request() can return 1 on success, so don't treat it as an error. Fixes: 18c49926c4bf ("cpufreq: Add QoS requests for userspace constraints") Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 8dda62367816..c28ebf2810f1 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2528,7 +2528,7 @@ static int cpufreq_boost_set_sw(int state) } ret = dev_pm_qos_update_request(policy->max_freq_req, policy->max); - if (ret) + if (ret < 0) break; }