summaryrefslogtreecommitdiff
path: root/common/temp_sensor.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-05 15:34:01 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-06 09:06:53 -0700
commita61d8db3d3d7cb145abb3a3580c9a9cfe2d044d7 (patch)
tree6ff786efde031e483645c0900388ca53d51b5255 /common/temp_sensor.c
parent0eb94470511959c09e5cb0f55eda0478dd5c7b04 (diff)
downloadchrome-ec-a61d8db3d3d7cb145abb3a3580c9a9cfe2d044d7.tar.gz
Change task messages to events
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7461 TEST=manual make BOARD={bds,link,daisy} make tests flash link system and make sure it boots Change-Id: I1241a1895c083e387e38ddab01ac346ca4474eb9
Diffstat (limited to 'common/temp_sensor.c')
-rw-r--r--common/temp_sensor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c
index 7b0e6dfa10..40d245bc0c 100644
--- a/common/temp_sensor.c
+++ b/common/temp_sensor.c
@@ -17,6 +17,7 @@
#include "task.h"
#include "temp_sensor.h"
#include "thermal.h"
+#include "timer.h"
#include "tmp006.h"
#include "uart.h"
#include "util.h"
@@ -93,8 +94,7 @@ void temp_sensor_task(void)
while (1) {
poll_all_sensors();
update_lpc_mapped_memory();
- /* Wait 1s */
- task_wait_msg(1000000);
+ usleep(1000000);
}
}