diff options
author | Vic Yang <victoryang@chromium.org> | 2012-06-07 14:52:40 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-06-08 08:57:35 -0700 |
commit | 3367d02f1f5091f535a6c8a4b61208bbc8c9fac7 (patch) | |
tree | 06b80480b6e0d1d9cad43ac422cd16dd700f6a57 /include/temp_sensor.h | |
parent | 210ddfefcfe90944c70105463beb6f795513c5e6 (diff) | |
download | chrome-ec-3367d02f1f5091f535a6c8a4b61208bbc8c9fac7.tar.gz |
Add option to adjust delay for indiviual temperature sensor
Perviously we have a 10-second delay for all temperature sensor. This is
not suitable for CPU temperature. Let's change that to have an option to
set the delay length for each temperature sensor. And also shorten the
delay of TMP006 sensor to 7 seconds, that of EC internal temperature to
4 seconds, and that of PECI CPU temperature to 0 second.
Signed-off-by: Vic Yang <victoryang@chromium.org>
BUG=chrome-os-partner:10233
TEST=Check EC issued warning as soon as CPU temperature reached the
threshold.
(cherry picked from commit cf24df7f3ee24eaa5dbeae3b304d11ddada9a914)
Change-Id: Id2cc4a437bde15697afe4020b6153e5d13466759
Reviewed-on: https://gerrit.chromium.org/gerrit/24694
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'include/temp_sensor.h')
-rw-r--r-- | include/temp_sensor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/temp_sensor.h b/include/temp_sensor.h index 158868b66c..85cfcf53ce 100644 --- a/include/temp_sensor.h +++ b/include/temp_sensor.h @@ -40,6 +40,9 @@ struct temp_sensor_t { int (*read)(int idx); /* Index among the same kind of sensors. */ int idx; + /* Delay between reading temperature and taking action about it, + * in seconds. */ + int action_delay_sec; }; /* Return the most recently measured temperature for the sensor in K, |