Skip to content

Commit

Permalink
cpufreq: dev_pm_qos_update_request() can return 1 on success
Browse files Browse the repository at this point in the history
dev_pm_qos_update_request() can return 1 on success, so don't treat
it as an error.

Fixes: 18c4992 ("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>
  • Loading branch information
Viresh Kumar authored and Rafael J. Wysocki committed Aug 10, 2019
1 parent e21a712 commit e61a412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e61a412

Please sign in to comment.