06 Nov, 2009
1 commit
-
Make the trip_point_N_type sysfs files return a string ending in EOL for
consistency with other sysfs files.Signed-off-by: Amit Kucheria
Acked-by: Zhang Rui
Signed-off-by: Andrew Morton
Signed-off-by: Len Brown
19 Sep, 2009
1 commit
-
Otherwise THERMAL_HWMON can be selected when HWMON=n and THERMAL=n, which
fails to build.Signed-off-by: Jan Beulich
Cc: Zhang Rui
Cc: Matthew Garrett
Signed-off-by: Andrew Morton
Signed-off-by: Len Brown
27 Aug, 2009
1 commit
-
The return value of the get_temp function is not checked when doing a
thermal zone update. This may lead to a critical shutdown if get_temp
fails and the content of the temp variable is incorrectly set higher than
the critical trip point.This has been observed on a system with incorrect ACPI implementation
where the corresponding methods were not serialized and therefore
sometimes triggered ACPI errors (AE_ALREADY_EXISTS). The following
critical shutdowns indicated a temperature of 2097 C, which was obviously
wrong.The patch adds a return value check that jumps over all trip point
evaluations printing a warning if get_temp fails. The trip points are
evaluated again on the next polling interval with successful get_temp
execution.Signed-off-by: Michael Brunner
Acked-by: Zhang Rui
Cc: Len Brown
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
16 Jun, 2009
1 commit
-
In the near future, the driver core is going to not allow direct access
to the driver_data pointer in struct device. Instead, the functions
dev_get_drvdata() and dev_set_drvdata() should be used. These functions
have been around since the beginning, so are backwards compatible with
all older kernel versions.Signed-off-by: Greg Kroah-Hartman
15 May, 2009
1 commit
-
This patch fixes a regression caused by commit
b1569e99c795bf83b4ddf41c4f1c42761ab7f75e
"ACPI: move thermal trip handling to generic thermal layer"
which accidentally changed trip point trigger condition to
temp > trip_tempThis patch changes the trigger condition back to
temp >= trip_tempSigned-off-by: Vladimir Zajac
Acked-by: Zhang Rui
Acked-by: Matthew Garrett
Signed-off-by: Andrew Morton
Signed-off-by: Len Brown
28 Mar, 2009
1 commit
-
Due to poor thermal design or Linux driving hardware outside its thermal
envelope, some systems will reach critical temperature and shut down
under high load. This patch adds support for forcing a polling-based
passive trip point if the firmware doesn't provide one. The assumption
is made that the processor is the most practical means to reduce the
dynamic heat generation, so hitting the passive thermal limit will cause
the CPU to be throttled until the temperature stabalises around the
defined value.UI is provided via a "passive" sysfs entry in the thermal zone
directory. It accepts a decimal value in millidegrees celsius, or "0" to
disable the functionality. Default behaviour is for this functionality
to be disabled.Signed-off-by: Matthew Garrett
Signed-off-by: Len Brown
21 Feb, 2009
1 commit
-
The ACPI code currently carries its own thermal trip handling, meaning that
any other thermal implementation will need to reimplement it. Move the code
to the generic thermal layer.Signed-off-by: Matthew Garrett
Signed-off-by: Len Brown
20 Feb, 2009
1 commit
-
The thermal API currently uses strings to pass values to userspace. This
makes it difficult to use from within the kernel. Change the interface
to use integers and fix up the consumers.Signed-off-by: Matthew Garrett
Acked-by: Zhang Rui
Acked-by: Thomas Renninger
Signed-off-by: Len Brown
07 Jan, 2009
1 commit
-
Signed-off-by: Kay Sievers
Signed-off-by: Greg Kroah-Hartman
26 Jun, 2008
1 commit
-
A bug in libsensors
Acked-by: Mark M. Hoffman
Signed-off-by: Len Brown
29 Apr, 2008
3 commits
-
thermal_sys was already the name of the resulting module,
and it is built from this one source file.Signed-off-by: Len Brown
-
Add hwmon sys I/F for generic thermal driver.
Note: we have one hwmon class device for EACH TYPE of the thermal zone device.
Signed-off-by: Zhang Rui
Acked-by: Jean Delvare
Signed-off-by: Len Brown -
Build the generic thermal driver as module "thermal_sys".
Make ACPI thermal, video, processor and fan SELECT the generic
thermal driver, as these drivers rely on it to build the sysfs I/F.Signed-off-by: Zhang Rui
Acked-by: Jean Delvare
Signed-off-by: Len Brown
16 Apr, 2008
1 commit
-
The THERMAL_MAX_TRIPS value is set to 10. It is too few for the Compaq AP550
machine which has 12 trip points.Signed-off-by: Krzysztof Helt
Cc: Len Brown
Cc: Zhang Rui
Cc: "Rafael J. Wysocki"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
18 Mar, 2008
2 commits
-
The generic thermal I/F gets selected by ACPI_THERMAL --
its only current customer.
it doesn't need to clutter other configs by default.Signed-off-by: Len Brown
-
This reverts commit 3152fb9f11cdd2fd8688c2c5cb805e5c09b53dd9.
This broke libsensors.
Acked-by: Zhang Rui
Acked-by: Jean Delvare
Signed-off-by: Len Brown
13 Mar, 2008
1 commit
-
Signed-off-by: Zhang Rui
Signed-off-by: Len Brown
16 Feb, 2008
2 commits
-
Need to return using ERR_PTR instead of NULL
in case of errors.Signed-off-by: Thomas Sujith
Signed-off-by: Len Brown -
Added sanity check to make sure that thermal zone
and cooling device exists.Signed-off-by: Thomas Sujith
Signed-off-by: Len Brown
08 Feb, 2008
1 commit
-
Reviewed-by: Randy Dunlap
Signed-off-by: Len Brown
02 Feb, 2008
1 commit
-
The Generic Thermal sysfs driver for thermal management.
Signed-off-by: Zhang Rui
Signed-off-by: Thomas Sujith
Signed-off-by: Len Brown