diff options
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index aa6875b272cb..a294921be650 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c | |||
@@ -39,11 +39,9 @@ | |||
39 | * @cpufreq_val: integer value representing the absolute value of the clipped | 39 | * @cpufreq_val: integer value representing the absolute value of the clipped |
40 | * frequency. | 40 | * frequency. |
41 | * @allowed_cpus: all the cpus involved for this cpufreq_cooling_device. | 41 | * @allowed_cpus: all the cpus involved for this cpufreq_cooling_device. |
42 | * @node: list_head to link all cpufreq_cooling_device together. | ||
43 | * | 42 | * |
44 | * This structure is required for keeping information of each | 43 | * This structure is required for keeping information of each |
45 | * cpufreq_cooling_device registered as a list whose head is represented by | 44 | * cpufreq_cooling_device registered. In order to prevent corruption of this a |
46 | * cooling_cpufreq_list. In order to prevent corruption of this list a | ||
47 | * mutex lock cooling_cpufreq_lock is used. | 45 | * mutex lock cooling_cpufreq_lock is used. |
48 | */ | 46 | */ |
49 | struct cpufreq_cooling_device { | 47 | struct cpufreq_cooling_device { |
@@ -52,9 +50,7 @@ struct cpufreq_cooling_device { | |||
52 | unsigned int cpufreq_state; | 50 | unsigned int cpufreq_state; |
53 | unsigned int cpufreq_val; | 51 | unsigned int cpufreq_val; |
54 | struct cpumask allowed_cpus; | 52 | struct cpumask allowed_cpus; |
55 | struct list_head node; | ||
56 | }; | 53 | }; |
57 | static LIST_HEAD(cooling_cpufreq_list); | ||
58 | static DEFINE_IDR(cpufreq_idr); | 54 | static DEFINE_IDR(cpufreq_idr); |
59 | static DEFINE_MUTEX(cooling_cpufreq_lock); | 55 | static DEFINE_MUTEX(cooling_cpufreq_lock); |
60 | 56 | ||