diff options
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r-- | include/linux/thermal.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index fe82022478e7..f0bd7f90a90d 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
@@ -74,6 +74,8 @@ enum thermal_trend { | |||
74 | THERMAL_TREND_STABLE, /* temperature is stable */ | 74 | THERMAL_TREND_STABLE, /* temperature is stable */ |
75 | THERMAL_TREND_RAISING, /* temperature is raising */ | 75 | THERMAL_TREND_RAISING, /* temperature is raising */ |
76 | THERMAL_TREND_DROPPING, /* temperature is dropping */ | 76 | THERMAL_TREND_DROPPING, /* temperature is dropping */ |
77 | THERMAL_TREND_RAISE_FULL, /* apply highest cooling action */ | ||
78 | THERMAL_TREND_DROP_FULL, /* apply lowest cooling action */ | ||
77 | }; | 79 | }; |
78 | 80 | ||
79 | /* Events supported by Thermal Netlink */ | 81 | /* Events supported by Thermal Netlink */ |
@@ -121,6 +123,7 @@ struct thermal_zone_device_ops { | |||
121 | int (*set_trip_hyst) (struct thermal_zone_device *, int, | 123 | int (*set_trip_hyst) (struct thermal_zone_device *, int, |
122 | unsigned long); | 124 | unsigned long); |
123 | int (*get_crit_temp) (struct thermal_zone_device *, unsigned long *); | 125 | int (*get_crit_temp) (struct thermal_zone_device *, unsigned long *); |
126 | int (*set_emul_temp) (struct thermal_zone_device *, unsigned long); | ||
124 | int (*get_trend) (struct thermal_zone_device *, int, | 127 | int (*get_trend) (struct thermal_zone_device *, int, |
125 | enum thermal_trend *); | 128 | enum thermal_trend *); |
126 | int (*notify) (struct thermal_zone_device *, int, | 129 | int (*notify) (struct thermal_zone_device *, int, |
@@ -163,6 +166,7 @@ struct thermal_zone_device { | |||
163 | int polling_delay; | 166 | int polling_delay; |
164 | int temperature; | 167 | int temperature; |
165 | int last_temperature; | 168 | int last_temperature; |
169 | int emul_temperature; | ||
166 | int passive; | 170 | int passive; |
167 | unsigned int forced_passive; | 171 | unsigned int forced_passive; |
168 | const struct thermal_zone_device_ops *ops; | 172 | const struct thermal_zone_device_ops *ops; |
@@ -244,9 +248,11 @@ int thermal_register_governor(struct thermal_governor *); | |||
244 | void thermal_unregister_governor(struct thermal_governor *); | 248 | void thermal_unregister_governor(struct thermal_governor *); |
245 | 249 | ||
246 | #ifdef CONFIG_NET | 250 | #ifdef CONFIG_NET |
247 | extern int thermal_generate_netlink_event(u32 orig, enum events event); | 251 | extern int thermal_generate_netlink_event(struct thermal_zone_device *tz, |
252 | enum events event); | ||
248 | #else | 253 | #else |
249 | static inline int thermal_generate_netlink_event(u32 orig, enum events event) | 254 | static int thermal_generate_netlink_event(struct thermal_zone_device *tz, |
255 | enum events event) | ||
250 | { | 256 | { |
251 | return 0; | 257 | return 0; |
252 | } | 258 | } |