This source file includes following definitions.
- clock_cooling_register
- clock_cooling_unregister
- clock_cooling_get_level
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #ifndef __CPU_COOLING_H__
16 #define __CPU_COOLING_H__
17
18 #include <linux/of.h>
19 #include <linux/thermal.h>
20 #include <linux/cpumask.h>
21
22 #ifdef CONFIG_CLOCK_THERMAL
23
24
25
26
27
28 struct thermal_cooling_device *
29 clock_cooling_register(struct device *dev, const char *clock_name);
30
31
32
33
34
35 void clock_cooling_unregister(struct thermal_cooling_device *cdev);
36
37 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev,
38 unsigned long freq);
39 #else
40 static inline struct thermal_cooling_device *
41 clock_cooling_register(struct device *dev, const char *clock_name)
42 {
43 return NULL;
44 }
45 static inline
46 void clock_cooling_unregister(struct thermal_cooling_device *cdev)
47 {
48 }
49 static inline
50 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev,
51 unsigned long freq)
52 {
53 return THERMAL_CSTATE_INVALID;
54 }
55 #endif
56
57 #endif