diff options
| author | Len Brown <len.brown@intel.com> | 2008-06-26 01:56:35 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2008-06-26 01:56:35 -0400 |
| commit | c4e6a2e64e948de42473e9c829181d768b1258c3 (patch) | |
| tree | a0305f7ac7810309d113eb1a542278b8bb9877e3 | |
| parent | 816c2eda3ce8fa7eb62f22e01e2ec7a3f7d677c0 (diff) | |
| parent | 16d752397301b95abaa95cbaf9e785d221872311 (diff) | |
Merge branches 'release', 'acpi_disabled' and 'bugzilla-10958' into release
| -rw-r--r-- | Documentation/feature-removal-schedule.txt | 9 | ||||
| -rw-r--r-- | drivers/thermal/Kconfig | 9 | ||||
| -rw-r--r-- | drivers/thermal/thermal_sys.c | 4 | ||||
| -rw-r--r-- | include/linux/thermal.h | 6 |
4 files changed, 22 insertions, 6 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 5b3f31faed56..46ece3fba6f9 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
| @@ -312,3 +312,12 @@ When: 2.6.26 | |||
| 312 | Why: Implementation became generic; users should now include | 312 | Why: Implementation became generic; users should now include |
| 313 | linux/semaphore.h instead. | 313 | linux/semaphore.h instead. |
| 314 | Who: Matthew Wilcox <willy@linux.intel.com> | 314 | Who: Matthew Wilcox <willy@linux.intel.com> |
| 315 | |||
| 316 | --------------------------- | ||
| 317 | |||
| 318 | What: CONFIG_THERMAL_HWMON | ||
| 319 | When: January 2009 | ||
| 320 | Why: This option was introduced just to allow older lm-sensors userspace | ||
| 321 | to keep working over the upgrade to 2.6.26. At the scheduled time of | ||
| 322 | removal fixed lm-sensors (2.x or 3.x) should be readily available. | ||
| 323 | Who: Rene Herman <rene.herman@gmail.com> | ||
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 4b628526df09..a86e952ed4ca 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig | |||
| @@ -12,3 +12,12 @@ menuconfig THERMAL | |||
| 12 | cooling devices. | 12 | cooling devices. |
| 13 | All platforms with ACPI thermal support can use this driver. | 13 | All platforms with ACPI thermal support can use this driver. |
| 14 | If you want this support, you should say Y or M here. | 14 | If you want this support, you should say Y or M here. |
| 15 | |||
| 16 | config THERMAL_HWMON | ||
| 17 | bool "Hardware monitoring support" | ||
| 18 | depends on HWMON=y || HWMON=THERMAL | ||
| 19 | help | ||
| 20 | The generic thermal sysfs driver's hardware monitoring support | ||
| 21 | requires a 2.10.7/3.0.2 or later lm-sensors userspace. | ||
| 22 | |||
| 23 | Say Y if your user-space is new enough. | ||
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 6098787341f3..fe07462d5947 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c | |||
| @@ -295,8 +295,8 @@ thermal_cooling_device_trip_point_show(struct device *dev, | |||
| 295 | 295 | ||
| 296 | /* Device management */ | 296 | /* Device management */ |
| 297 | 297 | ||
| 298 | #if defined(CONFIG_HWMON) || \ | 298 | #if defined(CONFIG_THERMAL_HWMON) |
| 299 | (defined(CONFIG_HWMON_MODULE) && defined(CONFIG_THERMAL_MODULE)) | 299 | |
| 300 | /* hwmon sys I/F */ | 300 | /* hwmon sys I/F */ |
| 301 | #include <linux/hwmon.h> | 301 | #include <linux/hwmon.h> |
| 302 | static LIST_HEAD(thermal_hwmon_list); | 302 | static LIST_HEAD(thermal_hwmon_list); |
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 06d3e6eb9ca8..917707e6151d 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h | |||
| @@ -66,8 +66,7 @@ struct thermal_cooling_device { | |||
| 66 | ((long)t-2732+5)/10 : ((long)t-2732-5)/10) | 66 | ((long)t-2732+5)/10 : ((long)t-2732-5)/10) |
| 67 | #define CELSIUS_TO_KELVIN(t) ((t)*10+2732) | 67 | #define CELSIUS_TO_KELVIN(t) ((t)*10+2732) |
| 68 | 68 | ||
| 69 | #if defined(CONFIG_HWMON) || \ | 69 | #if defined(CONFIG_THERMAL_HWMON) |
| 70 | (defined(CONFIG_HWMON_MODULE) && defined(CONFIG_THERMAL_MODULE)) | ||
| 71 | /* thermal zone devices with the same type share one hwmon device */ | 70 | /* thermal zone devices with the same type share one hwmon device */ |
| 72 | struct thermal_hwmon_device { | 71 | struct thermal_hwmon_device { |
| 73 | char type[THERMAL_NAME_LENGTH]; | 72 | char type[THERMAL_NAME_LENGTH]; |
| @@ -94,8 +93,7 @@ struct thermal_zone_device { | |||
| 94 | struct idr idr; | 93 | struct idr idr; |
| 95 | struct mutex lock; /* protect cooling devices list */ | 94 | struct mutex lock; /* protect cooling devices list */ |
| 96 | struct list_head node; | 95 | struct list_head node; |
| 97 | #if defined(CONFIG_HWMON) || \ | 96 | #if defined(CONFIG_THERMAL_HWMON) |
| 98 | (defined(CONFIG_HWMON_MODULE) && defined(CONFIG_THERMAL_MODULE)) | ||
| 99 | struct list_head hwmon_node; | 97 | struct list_head hwmon_node; |
| 100 | struct thermal_hwmon_device *hwmon; | 98 | struct thermal_hwmon_device *hwmon; |
| 101 | struct thermal_hwmon_attr temp_input; /* hwmon sys attr */ | 99 | struct thermal_hwmon_attr temp_input; /* hwmon sys attr */ |
