diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-24 15:43:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-24 15:43:06 -0500 |
commit | 81f05fee8c063cfc1614ddba1ce88cb1129f263d (patch) | |
tree | 3a2d305e26011f87f1ace81b70361bdb4a8d1898 /include | |
parent | c52cb4311f20538fcb69420e55a19ac622546a08 (diff) | |
parent | 98d94507e10c3c0a5cfc1c3ac4df23e761f1b874 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
Pull thermal management updates from Zhang Rui:
"The top merge commit was re-generated yesterday because two topic
branches were dropped from this pull request in the last minute due to
some unaddressed comments. All the other material has been in
linux-next for quite a while.
Specifics:
- Enhance thermal core to handle unexpected device cooling states
after fresh boot and system resume. From Zhang Rui and Chen Yu.
- Several fixes and cleanups on Rockchip and RCAR thermal drivers.
From Caesar Wang and Kuninori Morimoto.
- Add Broxton support for Intel processor thermal reporting device
driver. From Amy Wiles"
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
thermal: trip_point_temp_store() calls thermal_zone_device_update()
thermal: rcar: rcar_thermal_get_temp() return error if strange temp
thermal: rcar: check irq possibility in rcar_thermal_irq_xxx()
thermal: rcar: check every rcar_thermal_update_temp() return value
thermal: rcar: move rcar_thermal_dt_ids to upside
thermal: rockchip: Support the RK3399 SoCs in thermal driver
thermal: rockchip: Support the RK3228 SoCs in thermal driver
dt-bindings: rockchip-thermal: Support the RK3228/RK3399 SoCs compatible
thermal: rockchip: fix a trivial typo
Thermal: Enable Broxton SoC thermal reporting device
thermal: constify pch_dev_ops structure
Thermal: do thermal zone update after a cooling device registered
Thermal: handle thermal zone device properly during system sleep
Thermal: initialize thermal zone device correctly
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thermal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 613c29bd6baf..e13a1ace50e9 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
@@ -43,6 +43,9 @@ | |||
43 | /* Default weight of a bound cooling device */ | 43 | /* Default weight of a bound cooling device */ |
44 | #define THERMAL_WEIGHT_DEFAULT 0 | 44 | #define THERMAL_WEIGHT_DEFAULT 0 |
45 | 45 | ||
46 | /* use value, which < 0K, to indicate an invalid/uninitialized temperature */ | ||
47 | #define THERMAL_TEMP_INVALID -274000 | ||
48 | |||
46 | /* Unit conversion macros */ | 49 | /* Unit conversion macros */ |
47 | #define DECI_KELVIN_TO_CELSIUS(t) ({ \ | 50 | #define DECI_KELVIN_TO_CELSIUS(t) ({ \ |
48 | long _t = (t); \ | 51 | long _t = (t); \ |
@@ -167,6 +170,7 @@ struct thermal_attr { | |||
167 | * @forced_passive: If > 0, temperature at which to switch on all ACPI | 170 | * @forced_passive: If > 0, temperature at which to switch on all ACPI |
168 | * processor cooling devices. Currently only used by the | 171 | * processor cooling devices. Currently only used by the |
169 | * step-wise governor. | 172 | * step-wise governor. |
173 | * @need_update: if equals 1, thermal_zone_device_update needs to be invoked. | ||
170 | * @ops: operations this &thermal_zone_device supports | 174 | * @ops: operations this &thermal_zone_device supports |
171 | * @tzp: thermal zone parameters | 175 | * @tzp: thermal zone parameters |
172 | * @governor: pointer to the governor for this thermal zone | 176 | * @governor: pointer to the governor for this thermal zone |
@@ -194,6 +198,7 @@ struct thermal_zone_device { | |||
194 | int emul_temperature; | 198 | int emul_temperature; |
195 | int passive; | 199 | int passive; |
196 | unsigned int forced_passive; | 200 | unsigned int forced_passive; |
201 | atomic_t need_update; | ||
197 | struct thermal_zone_device_ops *ops; | 202 | struct thermal_zone_device_ops *ops; |
198 | struct thermal_zone_params *tzp; | 203 | struct thermal_zone_params *tzp; |
199 | struct thermal_governor *governor; | 204 | struct thermal_governor *governor; |