summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-04-25 13:04:23 -0700
committerRandall Spangler <rspangler@chromium.org>2012-04-25 14:49:49 -0700
commit1aa57e140e3c8ef02c0140730dde3962d3eb821f (patch)
tree18b39676fa0b9cbae24e3cb50a712336ed3a7528 /common/main.c
parent212784b5fab0a1ba30c45e66a9329423a6d998e5 (diff)
downloadchrome-ec-1aa57e140e3c8ef02c0140730dde3962d3eb821f.tar.gz
Watchdog fixes
1) When frequency changes, reload the watchdog timer right away, or it may expire before the next reload. (Only matters when re-enabling the PLL.) 2) Split out the timer/task debug output used by the watchdog into their own routines, instead of assuming it's safe to call the command handlers. Also make the flushes in those print routines safe to call from interrupt level. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=waitms 1500; should print task dump again Change-Id: I07e0ed24a526ae499566dab0bbeb0f5755cd5be6
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c
index 8252a231d0..044ae45027 100644
--- a/common/main.c
+++ b/common/main.c
@@ -107,8 +107,8 @@ int main(void)
/* Print the init time and reset cause. Init time isn't completely
* accurate because it can't take into account the time for the first
* few module inits, but it'll at least catch the majority of them. */
- uart_printf("\n\n--- Chrome EC initialized in %d us ---\n",
- get_time().le.lo);
+ uart_printf("\n\n--- Chrome EC initialized in %ld us ---\n",
+ get_time().val);
uart_printf("build: %s\n", system_get_build_info());
uart_printf("(image: %s, last reset: %s)\n",
system_get_image_copy_string(),