11 Jun 2012 05:20
[RFC PATCH 3/12] thermal: set upper and lower limits when binding
Zhang Rui <rui.zhang <at> intel.com>
2012-06-11 03:20:01 GMT
2012-06-11 03:20:01 GMT
Set upper and lower limits when binding
a thermal cooling device to a thermal zone device.
Signed-off-by: Zhang Rui <rui.zhang <at> intel.com>
---
drivers/acpi/thermal.c | 34 ++++++++++++++++++++++++----------
drivers/platform/x86/acerhdf.c | 2 +-
drivers/thermal/thermal_sys.c | 20 ++++++++++++++------
include/linux/thermal.h | 3 ++-
4 files changed, 41 insertions(+), 18 deletions(-)
Index: rtd3/drivers/thermal/thermal_sys.c
===================================================================
--- rtd3.orig/drivers/thermal/thermal_sys.c
+++ rtd3/drivers/thermal/thermal_sys.c
<at> <at> -248,7 +248,7 <at> <at> passive_store(struct device *dev, struct
sizeof("Processor")))
thermal_zone_bind_cooling_device(tz,
THERMAL_TRIPS_NONE,
- cdev);
+ cdev, -1, -1);
}
mutex_unlock(&thermal_list_lock);
if (!tz->passive_delay)
<at> <at> -760,7 +760,8 <at> <at> static void thermal_zone_device_check(st
*/
int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz,
int trip,
- struct thermal_cooling_device *cdev)
(Continue reading)
RSS Feed