Logging temperature and cpu max frequency on exynos_ss
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev
- rename cool_dev -> cdev
Change-Id: If30e0780800f5ec3a56684750ab6c3c88dabae91
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
#include <linux/slab.h>
#include <linux/cpu.h>
#include <linux/cpu_cooling.h>
+#include <linux/exynos-ss.h>
#include <trace/events/thermal.h>
*/
clipped_freq = cpufreq_cdev->clipped_freq;
- if (policy->max > clipped_freq)
+ if (policy->max > clipped_freq) {
cpufreq_verify_within_limits(policy, 0, clipped_freq);
+ exynos_ss_thermal(NULL, 0, cpufreq_cdev->cdev->type, clipped_freq);
+ }
break;
}
mutex_unlock(&cooling_list_lock);
#include <linux/gpu_cooling.h>
#include <linux/isp_cooling.h>
#include <linux/slab.h>
+#include <linux/exynos-ss.h>
#include <soc/samsung/tmu.h>
#include <soc/samsung/ect_parser.h>
mutex_unlock(&thermal_suspend_lock);
+ exynos_ss_thermal(data->pdata, *temp / 1000, data->tmu_name, 0);
return 0;
}