diff options
author | Sameer Nanda <snanda@chromium.org> | 2012-10-15 11:27:09 -0700 |
---|---|---|
committer | Sameer Nanda <snanda@chromium.org> | 2012-10-16 10:07:50 -0700 |
commit | a548bd58a21434843f3a9242fbfb4d5b54009371 (patch) | |
tree | 71444492cdad2c90c0e21c5cdab7ad459769a971 | |
parent | 6bafbf15a1a0f4b7d75b3889eb900f27592d2cd2 (diff) | |
download | chrome-ec-a548bd58a21434843f3a9242fbfb4d5b54009371.tar.gz |
temp_metrics: disable ACPI thermal zone 1
ACPI thermal zone 0 is used for critical thermal events while thermal zone 1
is used for asserting (internal) prochot and duty cycling. Since the
equivalent of thermal zone 1 functionality exists in temp_metrics,
disable ACPI's thermal zone 1 in order to prevent conflicts between ACPI
and temp_metrics.
BUG=chrome-os-partner:9193
TEST='cat /sys/class/thermal/thermal_zone1/mode' and check that it is
disabled.
BRANCH=none
Original-Change-Id: I689e8e5c1747c5f259f4a72a9f86396f4aa5c0b2
Signed-off-by: Sameer Nanda <snanda@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/35593
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit 4dd3940d19196fc3f872f08ec30d6d5a6ad8ef28)
Change-Id: I363467d409abfe4b0f42b769b996944638c6bbdb
Reviewed-on: https://gerrit.chromium.org/gerrit/35695
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Sameer Nanda <snanda@chromium.org>
-rw-r--r-- | util/temp_metrics.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/temp_metrics.conf b/util/temp_metrics.conf index 5dba2c04bc..8c39b71d8a 100644 --- a/util/temp_metrics.conf +++ b/util/temp_metrics.conf @@ -321,6 +321,12 @@ script set_fan_rpm $rpm } + # Thermal zone 1 is for operating systems where a userland thermal loop + # doesn't exist. Disable it. + if [ -e /sys/class/thermal/thermal_zone1/mode ]; then + echo -n 'disabled' > /sys/class/thermal/thermal_zone1/mode + fi + # Get list of sensors to monitor. sensor_list=$(get_sensor_list) |