mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
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>
This commit is contained in:
parent
e21a712a96
commit
e61a41256e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user