diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2016-08-27 01:21:16 +0200 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2016-09-27 08:35:21 +0200 |
commit | 0e70f466fb910ae54c4c71243b99385129e93feb (patch) | |
tree | be1535a5675f7afa8a09cd09a119fddaeb24d662 /drivers/thermal/of-thermal.c | |
parent | Merge branches 'thermal-soc', 'thermal-core', 'thermal-intel' and 'thermal-te... (diff) | |
download | linux-0e70f466fb910ae54c4c71243b99385129e93feb.tar.xz linux-0e70f466fb910ae54c4c71243b99385129e93feb.zip |
thermal: Enhance thermal_zone_device_update for events
Added one additional parameter to thermal_zone_device_update() to provide
caller with an optional capability to specify reason.
Currently this event is used by user space governor to trigger different
processing based on event code. Also it saves an additional call to read
temperature when the event is received.
The following events are cuurently defined:
- Unspecified event
- New temperature sample
- Trip point violated
- Trip point changed
- thermal device up and down
- thermal device power capability changed
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/of-thermal.c')
-rw-r--r-- | drivers/thermal/of-thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/of-thermal.c b/drivers/thermal/of-thermal.c index ab6e5260a901..d04ec3b9e5ff 100644 --- a/drivers/thermal/of-thermal.c +++ b/drivers/thermal/of-thermal.c @@ -286,7 +286,7 @@ static int of_thermal_set_mode(struct thermal_zone_device *tz, mutex_unlock(&tz->lock); data->mode = mode; - thermal_zone_device_update(tz); + thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); return 0; } |