diff options
author | Simon Glass <sjg@chromium.org> | 2011-12-19 15:47:12 -0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2011-12-21 13:16:26 -0800 |
commit | 416b0a008f27eb6ff99fa6824532b131b783e32d (patch) | |
tree | bc284616d7f10312727df0caf1088a07b9344927 /include | |
parent | 5e601c69d07857ebfbd709acba7c448fd0189f5f (diff) |
Add CONFIG_DELAY_CONSOLE to delay console init
This option delays console initialization until after relocation. This
can save time if this init is relatively expensive, since after
relocation the CPU is often running much faster.
This option should be used in conjunction with CONFIG_PRE_CONSOLE_BUFFER
to ensure that all console output is buffered until the console is
ready for it.
This saves about 30ms boot time.
BUG=chromium-os:22938
TEST=build and boot on Kaen
Change-Id: I3a774b418d45e7be9338f9942df445c2c2baa528
Reviewed-on: https://gerrit.chromium.org/gerrit/13207
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Commit-Ready: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index e1761f66c0a..7f383afd678 100644 --- a/include/common.h +++ b/include/common.h @@ -727,6 +727,7 @@ int ctrlc (void); int had_ctrlc (void); /* have we had a Control-C since last clear? */ void clear_ctrlc (void); /* clear the Control-C condition */ int disable_ctrlc (int); /* 1 to disable, 0 to enable Control-C detect */ +int console_ready(void); /* console is now ready and accepting output */ /* * STDIO based functions (can always be used) |