Resolved migration conflicts from kernel 4.9 to 4.14.
- freq_table and power_table are merged into struct freq_table
Change-Id: If039d12292d1901b08444e162b23ca08bdbb8427
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
unsigned long value)
{
struct cpufreq_cooling_device *cpufreq_cdev = cdev->devdata;
+ int level = get_level(cpufreq_cdev, value);
- return get_level(cpufreq_cdev, value);
+ if (level == THERMAL_CSTATE_INVALID && value > cpufreq_cdev->freq_table[0].frequency)
+ level = 0;
+
+ return level;
}
/**