thermal: cpu_cooling: Move cpufreq_cooling_device structure to header file.
authorPark Chungwoo <cww.park@samsung.com>
Tue, 15 Mar 2016 07:54:50 +0000 (16:54 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:09:11 +0000 (17:09 +0900)
Resolved migration conflicts from kernel 4.9 to 4.14.

Change-Id: I4d694ace63149e5935d6d5d7d421ac5f7ad002e1
Signed-off-by: Park Chungwoo <cww.park@samsung.com>
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
drivers/thermal/cpu_cooling.c
include/linux/cpu_cooling.h

index 908a8014cf767efb34f4b8dfe6b4958738fa2d84..815b6f10d56aea74179ab766615397614df104c0 100644 (file)
@@ -71,42 +71,6 @@ struct time_in_idle {
        u64 timestamp;
 };
 
-/**
- * struct cpufreq_cooling_device - data for cooling device with cpufreq
- * @id: unique integer value corresponding to each cpufreq_cooling_device
- *     registered.
- * @last_load: load measured by the latest call to cpufreq_get_requested_power()
- * @cpufreq_state: integer value representing the current state of cpufreq
- *     cooling devices.
- * @clipped_freq: integer value representing the absolute value of the clipped
- *     frequency.
- * @max_level: maximum cooling level. One less than total number of valid
- *     cpufreq frequencies.
- * @freq_table: Freq table in descending order of frequencies
- * @cdev: thermal_cooling_device pointer to keep track of the
- *     registered cooling device.
- * @policy: cpufreq policy.
- * @node: list_head to link all cpufreq_cooling_device together.
- * @idle_time: idle time stats
- * @plat_get_static_power: callback to calculate the static power
- *
- * This structure is required for keeping information of each registered
- * cpufreq_cooling_device.
- */
-struct cpufreq_cooling_device {
-       int id;
-       u32 last_load;
-       unsigned int cpufreq_state;
-       unsigned int clipped_freq;
-       unsigned int max_level;
-       struct freq_table *freq_table;  /* In descending order */
-       struct thermal_cooling_device *cdev;
-       struct cpufreq_policy *policy;
-       struct list_head node;
-       struct time_in_idle *idle_time;
-       get_static_t plat_get_static_power;
-};
-
 static DEFINE_IDA(cpufreq_ida);
 static DEFINE_MUTEX(cooling_list_lock);
 static LIST_HEAD(cpufreq_cdev_list);
index d4292ebc5c8b0e06ca64e7497d07a0579d17fb2f..b23da6f0e0b3f6fac4320c148a33a3be72fdee8f 100644 (file)
@@ -33,6 +33,42 @@ struct cpufreq_policy;
 typedef int (*get_static_t)(cpumask_t *cpumask, int interval,
                            unsigned long voltage, u32 *power);
 
+/**
+ * struct cpufreq_cooling_device - data for cooling device with cpufreq
+ * @id: unique integer value corresponding to each cpufreq_cooling_device
+ *     registered.
+ * @last_load: load measured by the latest call to cpufreq_get_requested_power()
+ * @cpufreq_state: integer value representing the current state of cpufreq
+ *     cooling devices.
+ * @clipped_freq: integer value representing the absolute value of the clipped
+ *     frequency.
+ * @max_level: maximum cooling level. One less than total number of valid
+ *     cpufreq frequencies.
+ * @freq_table: Freq table in descending order of frequencies
+ * @cdev: thermal_cooling_device pointer to keep track of the
+ *     registered cooling device.
+ * @policy: cpufreq policy.
+ * @node: list_head to link all cpufreq_cooling_device together.
+ * @idle_time: idle time stats
+ * @plat_get_static_power: callback to calculate the static power
+ *
+ * This structure is required for keeping information of each registered
+ * cpufreq_cooling_device.
+ */
+struct cpufreq_cooling_device {
+       int id;
+       u32 last_load;
+       unsigned int cpufreq_state;
+       unsigned int clipped_freq;
+       unsigned int max_level;
+       struct freq_table *freq_table;  /* In descending order */
+       struct thermal_cooling_device *cdev;
+       struct cpufreq_policy *policy;
+       struct list_head node;
+       struct time_in_idle *idle_time;
+       get_static_t plat_get_static_power;
+};
+
 #ifdef CONFIG_CPU_THERMAL
 /**
  * cpufreq_cooling_register - function to create cpufreq cooling device.