Thermal: int340x_thermal: expose acpi thermal relationship tables
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Wed, 3 Sep 2014 07:14:23 +0000 (15:14 +0800)
committerZhang Rui <rui.zhang@intel.com>
Sat, 11 Oct 2014 01:35:48 +0000 (09:35 +0800)
commit52b1c69d7e3cd8bdba0e55bde24093f0779bb29d
tree6b1a0e0da03403896e2b014226b62e8331ff6c9c
parent4384b8fe162d8aa03905d02073707bcf364cc7ce
Thermal: int340x_thermal: expose acpi thermal relationship tables

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>
drivers/thermal/Kconfig
drivers/thermal/int340x_thermal/Makefile
drivers/thermal/int340x_thermal/acpi_thermal_rel.c [new file with mode: 0644]
drivers/thermal/int340x_thermal/acpi_thermal_rel.h [new file with mode: 0644]