Skip to content

Commit c4e6a2e

Browse files
committed
Merge branches 'release', 'acpi_disabled' and 'bugzilla-10958' into release
2 parents 816c2ed + 16d7523 commit c4e6a2e

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

Documentation/feature-removal-schedule.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,12 @@ When: 2.6.26
312312
Why: Implementation became generic; users should now include
313313
linux/semaphore.h instead.
314314
Who: Matthew Wilcox <[email protected]>
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 <[email protected]>

drivers/thermal/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,12 @@ menuconfig THERMAL
1212
cooling devices.
1313
All platforms with ACPI thermal support can use this driver.
1414
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.

drivers/thermal/thermal_sys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ thermal_cooling_device_trip_point_show(struct device *dev,
295295

296296
/* Device management */
297297

298-
#if defined(CONFIG_HWMON) || \
299-
(defined(CONFIG_HWMON_MODULE) && defined(CONFIG_THERMAL_MODULE))
298+
#if defined(CONFIG_THERMAL_HWMON)
299+
300300
/* hwmon sys I/F */
301301
#include <linux/hwmon.h>
302302
static LIST_HEAD(thermal_hwmon_list);

include/linux/thermal.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ struct thermal_cooling_device {
6666
((long)t-2732+5)/10 : ((long)t-2732-5)/10)
6767
#define CELSIUS_TO_KELVIN(t) ((t)*10+2732)
6868

69-
#if defined(CONFIG_HWMON) || \
70-
(defined(CONFIG_HWMON_MODULE) && defined(CONFIG_THERMAL_MODULE))
69+
#if defined(CONFIG_THERMAL_HWMON)
7170
/* thermal zone devices with the same type share one hwmon device */
7271
struct thermal_hwmon_device {
7372
char type[THERMAL_NAME_LENGTH];
@@ -94,8 +93,7 @@ struct thermal_zone_device {
9493
struct idr idr;
9594
struct mutex lock; /* protect cooling devices list */
9695
struct list_head node;
97-
#if defined(CONFIG_HWMON) || \
98-
(defined(CONFIG_HWMON_MODULE) && defined(CONFIG_THERMAL_MODULE))
96+
#if defined(CONFIG_THERMAL_HWMON)
9997
struct list_head hwmon_node;
10098
struct thermal_hwmon_device *hwmon;
10199
struct thermal_hwmon_attr temp_input; /* hwmon sys attr */

0 commit comments

Comments
 (0)