Skip to content

Commit

Permalink
Thermal: int340x_thermal: expose acpi thermal relationship tables
Browse files Browse the repository at this point in the history
ACPI 4.0 introduced two thermal relationship tables via _ART
(active cooling) and  _TRT (passive cooling) objects. These
tables contain many to many relationships among thermal sensors
and cooling devices.

This patch parses _ART and _TRT and makes the result available to
the userspace via an misc device interface. At the same time,
kernel drivers can also request parsing results from internal
kernel APIs.

The results include source and target devices, influence, and
sampling rate in case of _TRT. For _ART, the result shows source
device, target device, and weight percentage.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
  • Loading branch information
Jacob Pan authored and Zhang Rui committed Oct 11, 2014
1 parent 4384b8f commit 52b1c69
Show file tree
Hide file tree
Showing 4 changed files with 490 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/thermal/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ config INT340X_THERMAL
tristate "ACPI INT340X thermal drivers"
depends on X86 && ACPI
select THERMAL_GOV_USER_SPACE
select ACPI_THERMAL_REL
help
Newer laptops and tablets that use ACPI may have thermal sensors and
other devices with thermal control capabilities outside the core
Expand All @@ -237,6 +238,10 @@ config INT340X_THERMAL
information to allow the user to select his laptop to run without
turning on the fans.

config ACPI_THERMAL_REL
tristate
depends on ACPI

menu "Texas Instruments thermal drivers"
source "drivers/thermal/ti-soc-thermal/Kconfig"
endmenu
Expand Down
1 change: 1 addition & 0 deletions drivers/thermal/int340x_thermal/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
obj-$(CONFIG_INT340X_THERMAL) += int3400_thermal.o
obj-$(CONFIG_INT340X_THERMAL) += int3402_thermal.o
obj-$(CONFIG_INT340X_THERMAL) += int3403_thermal.o
obj-$(CONFIG_ACPI_THERMAL_REL) += acpi_thermal_rel.o
Loading

0 comments on commit 52b1c69

Please sign in to comment.