Sometimes all cpus of big cluster are closed and its frequency
keep a high value, in order to reduce power and reset normally,
set frequency to a specific value after close all the cpus.
Change-Id: I88bce25812d1b0ff3f78a898cb161642a65cc523
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
struct cpumask cpus;
struct private_data *priv = policy->driver_data;
+#ifdef CONFIG_ARCH_ROCKCHIP
+ cpumask_set_cpu(policy->cpu, policy->cpus);
+ if (cpufreq_generic_suspend(policy))
+ pr_err("%s: Failed to suspend driver: %p\n", __func__, policy);
+ cpumask_clear_cpu(policy->cpu, policy->cpus);
+#endif
priv->cpu_dev = get_cpu_device(policy->cpu);
cpufreq_cooling_unregister(priv->cdev);
dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table);