diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-18 13:03:38 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-19 08:39:41 -0700 |
commit | 70f3fcaf8648230a5cd27a9da151494d6df3016f (patch) | |
tree | c67e9ff911914f7eaef7af6c9e95874cf8d0cce2 /include/peci.h | |
parent | 6ecbb86b6392fa0b11514903a9fb3d3a3b704391 (diff) | |
download | chrome-ec-70f3fcaf8648230a5cd27a9da151494d6df3016f.tar.gz |
Add hooks module so modules can be notified of system-level events.
This will be used for sleep/wake/sysjump/etc. For now it's just wired
up to clock frequency changing.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=manual: use nopll command, should still work
Change-Id: Iedcea5830bc18eacfd955c29b8f793aba8905dd8
Diffstat (limited to 'include/peci.h')
-rw-r--r-- | include/peci.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/peci.h b/include/peci.h index 7a98a24991..1ad0d92bad 100644 --- a/include/peci.h +++ b/include/peci.h @@ -10,21 +10,16 @@ #include "common.h" -struct temp_sensor_t; - -/* Initializes the module. */ +/* Initialize the module. */ int peci_init(void); -/* Notifies the module the system clock frequency has changed to <freq>. */ -void peci_clock_changed(int freq); - -/* Returns the current CPU temperature in degrees K, or -1 if error. +/* Return the current CPU temperature in degrees K, or -1 if error. * * Note that the PECI interface is currently a little flaky; if you get an * error, retry a bit later. */ int peci_get_cpu_temp(void); -/* Reads the CPU temperature sensor via PECI. This interface is for the +/* Read the CPU temperature sensor via PECI. This interface is for the * temperature sensor module. Returns the temperature in degrees K, or -1 if * error. */ int peci_temp_sensor_get_val(int idx); |