From ef46903dea21dee8932b5413c1c0ae6cd3a4eb16 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Tue, 29 May 2012 09:24:12 -0700 Subject: [PATCH] usleep() chains to udelay() if called before task_start() ...so I can use usleep() for eeprom delays in the CL coming next... Signed-off-by: Randall Spangler BUG=chrome-os-partner:10200 TEST=if it boots, it worked Change-Id: I564578f24452a4ac39abe79ff28cfff4b665ad2f --- core/cortex-m/task.c | 9 +++++++++ core/cortex-m/timer.c | 7 +++++++ include/task.h | 16 ++++++++++------ 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index aaaa776385..41b0b7e39a 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -129,6 +129,8 @@ static int need_resched_or_profiling = 0; */ static uint32_t tasks_ready = (1<