}
EXPORT_SYMBOL_GPL(cpufreq_cooling_test_related_cpu);
+void cpufreq_cooling_copy_cpumask(struct thermal_cooling_device *cdev,
+ struct cpumask *dstmask)
+{
+ struct cpufreq_cooling_device *cpufreq_cdev;
+ struct cpufreq_policy *policy;
+
+ if (cdev && cdev->devdata) {
+ cpufreq_cdev = cdev->devdata;
+ if (cpufreq_cdev->policy) {
+ policy = cpufreq_cdev->policy;
+ cpumask_copy(dstmask, policy->related_cpus);
+ }
+ }
+}
+EXPORT_SYMBOL_GPL(cpufreq_cooling_copy_cpumask);
+
/**
* of_cpufreq_cooling_register - function to create cpufreq cooling device.
* @policy: cpufreq policy
struct cpumask
*cpufreq_cooling_get_related_cpumask(struct thermal_cooling_device *cdev);
+void cpufreq_cooling_copy_cpumask(struct thermal_cooling_device *cdev,
+ struct cpumask *dstmask);
+
#else /* !CONFIG_CPU_THERMAL */
static inline struct thermal_cooling_device *
cpufreq_cooling_register(struct cpufreq_policy *policy)
{
return NULL;
}
+
+void cpufreq_cooling_copy_cpumask(struct thermal_cooling_device *cdev,
+ struct cpumask *dstmask) {}
#endif /* CONFIG_CPU_THERMAL */
#if defined(CONFIG_THERMAL_OF) && defined(CONFIG_CPU_THERMAL)