sched_power_cpu_reinit_weight(cpu, weight);
}
+struct cpumask *thermal_cpu_cooling_get_cpumask(int cpu)
+{
+ struct cpumask *cpus = NULL;
+ struct thermal_cooling_device *cdev;
+ struct thermal_instance *instance;
+ struct thermal_zone_device *tz;
+
+ mutex_lock(&thermal_list_lock);
+ list_for_each_entry(cdev, &thermal_cdev_list, node) {
+ if (cpufreq_cooling_test_related_cpu(cdev, cpu)) {
+ /* cpus = cpufreq_cooling_get_related_cpumask(cdev); */
+ break;
+ }
+ }
+
+ mutex_unlock(&thermal_list_lock);
+ return cpus;
+}
/**
* thermal_zone_unbind_cooling_device() - unbind a cooling device from a
bool cpufreq_cooling_test_related_cpu(struct thermal_cooling_device *cdev,
int cpu);
+struct cpumask
+*cpufreq_cooling_get_related_cpumask(struct thermal_cooling_device *cdev);
#else /* !CONFIG_CPU_THERMAL */
static inline struct thermal_cooling_device *
{
return false;
}
+
+struct cpumask
+*cpufreq_cooling_get_related_cpumask(struct thermal_cooling_device *cdev)
+{
+ return NULL;
+}
#endif /* CONFIG_CPU_THERMAL */
#if defined(CONFIG_THERMAL_OF) && defined(CONFIG_CPU_THERMAL)