cpufreq.c (d31e95585ca697fb31440c6fe30113adc85ecfbd) cpufreq.c (737ffb27f2f1a8fe6644cac535486f7f25bbf6cb)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/cpufreq/cpufreq.c
4 *
5 * Copyright (C) 2001 Russell King
6 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
7 * (C) 2013 Viresh Kumar <viresh.kumar@linaro.org>
8 *

--- 2371 unchanged lines hidden (view full) ---

2380
2381 /*
2382 * PM QoS framework collects all the requests from users and provide us
2383 * the final aggregated value here.
2384 */
2385 new_policy->min = freq_qos_read_value(&policy->constraints, FREQ_QOS_MIN);
2386 new_policy->max = freq_qos_read_value(&policy->constraints, FREQ_QOS_MAX);
2387
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/cpufreq/cpufreq.c
4 *
5 * Copyright (C) 2001 Russell King
6 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
7 * (C) 2013 Viresh Kumar <viresh.kumar@linaro.org>
8 *

--- 2371 unchanged lines hidden (view full) ---

2380
2381 /*
2382 * PM QoS framework collects all the requests from users and provide us
2383 * the final aggregated value here.
2384 */
2385 new_policy->min = freq_qos_read_value(&policy->constraints, FREQ_QOS_MIN);
2386 new_policy->max = freq_qos_read_value(&policy->constraints, FREQ_QOS_MAX);
2387
2388 /* verify the cpu speed can be set within this limit */
2388 /*
2389 * Verify that the CPU speed can be set within these limits and make sure
2390 * that min <= max.
2391 */
2389 ret = cpufreq_driver->verify(new_policy);
2390 if (ret)
2391 return ret;
2392
2393 policy->min = new_policy->min;
2394 policy->max = new_policy->max;
2395 trace_cpu_frequency_limits(policy);
2396

--- 354 unchanged lines hidden ---
2392 ret = cpufreq_driver->verify(new_policy);
2393 if (ret)
2394 return ret;
2395
2396 policy->min = new_policy->min;
2397 policy->max = new_policy->max;
2398 trace_cpu_frequency_limits(policy);
2399

--- 354 unchanged lines hidden ---