11 Jun 2012 05:19
[RFC PATCH 1/12] thermal: introduce multiple cooling states support for Active cooling devices
Zhang Rui <rui.zhang <at> intel.com>
2012-06-11 03:19:40 GMT
2012-06-11 03:19:40 GMT
Introduce multiple cooling states support for Active cooling devices. This is because general active cooling devices, like fans, may have multiple speeds, which can be mapped to different cooling states. Signed-off-by: Zhang Rui <rui.zhang <at> intel.com> --- drivers/thermal/thermal_sys.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) Index: rtd3/drivers/thermal/thermal_sys.c =================================================================== --- rtd3.orig/drivers/thermal/thermal_sys.c +++ rtd3/drivers/thermal/thermal_sys.c <at> <at> -1018,6 +1018,7 <at> <at> void thermal_zone_device_update(struct t enum thermal_trip_type trip_type; struct thermal_cooling_device_instance *instance; struct thermal_cooling_device *cdev; + unsigned long cur_state, max_state; mutex_lock(&tz->lock); <at> <at> -1057,10 +1058,17 <at> <at> void thermal_zone_device_update(struct t cdev = instance->cdev; + cdev->ops->get_cur_state(cdev, &cur_state); + cdev->ops->get_max_state(cdev, &max_state); +(Continue reading)
RSS Feed