diff options
| author | Eduardo Valentin <eduardo.valentin@ti.com> | 2012-11-12 10:58:50 -0500 |
|---|---|---|
| committer | Zhang Rui <rui.zhang@intel.com> | 2012-11-22 02:59:47 -0500 |
| commit | 3778ff5c709899a29cefe4b3077a926d0e1e9785 (patch) | |
| tree | 0395210ef0283ddf95bfd8acb9ba062688230df6 /drivers/thermal | |
| parent | dc1956b5f84de7d453ec4d9fe68385fffd689686 (diff) | |
thermal: cpu cooling: use const parameter while registering
There are predefined cpu_masks that are const data structures.
This patch changes the cpu cooling register function so that
those const cpu_masks can be used, without compilation warnings.
include/linux/cpumask.h
* The following particular system cpumasks and operations manage
* possible, present, active and online cpus.
*
* cpu_possible_mask- has bit 'cpu' set iff cpu is populatable
* cpu_present_mask - has bit 'cpu' set iff cpu is populated
* cpu_online_mask - has bit 'cpu' set iff cpu available to scheduler
* cpu_active_mask - has bit 'cpu' set iff cpu available to migration
*
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
| -rw-r--r-- | drivers/thermal/cpu_cooling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 6f94c2cac1f..836828e29a8 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
| @@ -313,7 +313,7 @@ static struct notifier_block thermal_cpufreq_notifier_block = { | |||
| 313 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen. | 313 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen. |
| 314 | */ | 314 | */ |
| 315 | struct thermal_cooling_device *cpufreq_cooling_register( | 315 | struct thermal_cooling_device *cpufreq_cooling_register( |
| 316 | struct cpumask *clip_cpus) | 316 | const struct cpumask *clip_cpus) |
| 317 | { | 317 | { |
| 318 | struct thermal_cooling_device *cool_dev; | 318 | struct thermal_cooling_device *cool_dev; |
| 319 | struct cpufreq_cooling_device *cpufreq_dev = NULL; | 319 | struct cpufreq_cooling_device *cpufreq_dev = NULL; |
