diff options
Diffstat (limited to 'include/linux/cpu_cooling.h')
| -rw-r--r-- | include/linux/cpu_cooling.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/cpu_cooling.h b/include/linux/cpu_cooling.h index 851530128e65..40b4ef54cc7d 100644 --- a/include/linux/cpu_cooling.h +++ b/include/linux/cpu_cooling.h | |||
| @@ -29,13 +29,13 @@ | |||
| 29 | #define CPUFREQ_COOLING_START 0 | 29 | #define CPUFREQ_COOLING_START 0 |
| 30 | #define CPUFREQ_COOLING_STOP 1 | 30 | #define CPUFREQ_COOLING_STOP 1 |
| 31 | 31 | ||
| 32 | #ifdef CONFIG_CPU_THERMAL | 32 | #if defined(CONFIG_CPU_THERMAL) || defined(CONFIG_CPU_THERMAL_MODULE) |
| 33 | /** | 33 | /** |
| 34 | * cpufreq_cooling_register - function to create cpufreq cooling device. | 34 | * cpufreq_cooling_register - function to create cpufreq cooling device. |
| 35 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen | 35 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen |
| 36 | */ | 36 | */ |
| 37 | struct thermal_cooling_device *cpufreq_cooling_register( | 37 | struct thermal_cooling_device *cpufreq_cooling_register( |
| 38 | struct cpumask *clip_cpus); | 38 | const struct cpumask *clip_cpus); |
| 39 | 39 | ||
| 40 | /** | 40 | /** |
| 41 | * cpufreq_cooling_unregister - function to remove cpufreq cooling device. | 41 | * cpufreq_cooling_unregister - function to remove cpufreq cooling device. |
| @@ -44,7 +44,7 @@ struct thermal_cooling_device *cpufreq_cooling_register( | |||
| 44 | void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev); | 44 | void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev); |
| 45 | #else /* !CONFIG_CPU_THERMAL */ | 45 | #else /* !CONFIG_CPU_THERMAL */ |
| 46 | static inline struct thermal_cooling_device *cpufreq_cooling_register( | 46 | static inline struct thermal_cooling_device *cpufreq_cooling_register( |
| 47 | struct cpumask *clip_cpus) | 47 | const struct cpumask *clip_cpus) |
| 48 | { | 48 | { |
| 49 | return NULL; | 49 | return NULL; |
| 50 | } | 50 | } |
