diff options
author | Durgadoss R <dugardoss.r@intel.com> | 2012-07-25 10:10:59 +0800 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-07-24 23:19:26 -0400 |
commit | 27365a6c7d64a3bba22ee62109e4a071bbd7f933 (patch) | |
tree | d8a5c1bf246171e2983b7f801b64a758fa6f62e3 /include/linux/thermal.h | |
parent | c56f5c0342dfee11a1a13d2f5bb7618de5b17590 (diff) | |
download | lwn-27365a6c7d64a3bba22ee62109e4a071bbd7f933.tar.gz lwn-27365a6c7d64a3bba22ee62109e4a071bbd7f933.zip |
Thermal: Add Hysteresis attributes
The Linux Thermal Framework does not support hysteresis
attributes. Most thermal sensors, today, have a
hysteresis value associated with trip points.
This patch adds hysteresis attributes on a per-trip-point
basis, to the Thermal Framework. These attributes are
optionally writable.
Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/thermal.h')
-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 6eaf9146c847..cfc8d908892e 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -60,6 +60,10 @@ struct thermal_zone_device_ops { unsigned long *); int (*set_trip_temp) (struct thermal_zone_device *, int, unsigned long); + int (*get_trip_hyst) (struct thermal_zone_device *, int, + unsigned long *); + int (*set_trip_hyst) (struct thermal_zone_device *, int, + unsigned long); int (*get_crit_temp) (struct thermal_zone_device *, unsigned long *); int (*notify) (struct thermal_zone_device *, int, enum thermal_trip_type); @@ -98,6 +102,7 @@ struct thermal_zone_device { struct device device; struct thermal_attr *trip_temp_attrs; struct thermal_attr *trip_type_attrs; + struct thermal_attr *trip_hyst_attrs; void *devdata; int trips; int tc1; |