If the return value is 0, it will change voltage in DVFS and lead to
error when resume. Here it change frequency unsuccessfully in fact, so
it need return -EINVAL.
Change-Id: Ia9eff9f75060fcc79c1b275c19de8740754617de
Signed-off-by: Xiao Feng <xf@rock-chips.com>
cpu = cpumask_first_and(cluster_policy_mask[cur_cluster],
cpu_online_mask);
if (cpu >= nr_cpu_ids)
- return 0;
+ return -EINVAL;
policy = cpufreq_cpu_get(cpu);
if (!policy)
- return 0;
+ return -EINVAL;
freqs.new = rate / 1000;
freqs.old = clk_get_rate(clk) / 1000;