Commit e61a4125 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki

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: 18c49926 ("cpufreq: Add QoS requests for userspace constraints")
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e21a712a
...@@ -2528,7 +2528,7 @@ static int cpufreq_boost_set_sw(int state) ...@@ -2528,7 +2528,7 @@ static int cpufreq_boost_set_sw(int state)
} }
ret = dev_pm_qos_update_request(policy->max_freq_req, policy->max); ret = dev_pm_qos_update_request(policy->max_freq_req, policy->max);
if (ret) if (ret < 0)
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment