diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2019-08-09 05:31:17 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-10 14:39:47 +0300 |
commit | e61a41256edf9f425039129757af4a80b5ed8162 (patch) | |
tree | 676b4efa8a9d8711c1c7224be893d9c79cbcee16 /drivers/cpufreq/cpufreq.c | |
parent | e21a712a9685488f5ce80495b37b9fdbe96c230d (diff) | |
download | linux-e61a41256edf9f425039129757af4a80b5ed8162.tar.xz |
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 <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |