mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Thermal: exynos: fix cooling state translation
Signed-off-by: Zhang Rui <rui.zhang@intel.com> Tested-by: Amit Daniel kachhap <amit.daniel@samsung.com>
This commit is contained in:
parent
fc35b35cbe
commit
57df810693
4 changed files with 24 additions and 23 deletions
|
@ -42,6 +42,8 @@ struct thermal_cooling_device *cpufreq_cooling_register(
|
|||
* @cdev: thermal cooling device pointer.
|
||||
*/
|
||||
void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev);
|
||||
|
||||
unsigned long cpufreq_cooling_get_level(unsigned int, unsigned int);
|
||||
#else /* !CONFIG_CPU_THERMAL */
|
||||
static inline struct thermal_cooling_device *cpufreq_cooling_register(
|
||||
const struct cpumask *clip_cpus)
|
||||
|
@ -53,6 +55,11 @@ static inline void cpufreq_cooling_unregister(
|
|||
{
|
||||
return;
|
||||
}
|
||||
static inline unsigned long cpufreq_cooling_get_level(unsigned int,
|
||||
unsigned int)
|
||||
{
|
||||
return THERMAL_CSTATE_INVALID;
|
||||
}
|
||||
#endif /* CONFIG_CPU_THERMAL */
|
||||
|
||||
#endif /* __CPU_COOLING_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue