aboutsummaryrefslogtreecommitdiff
path: root/src/lib/prog_loaders.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-02 14:12:18 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-11-11 10:31:29 +0000
commit45ddb4344f73051855da6d4e87a5ba4b4c66af71 (patch)
tree1a62d88791bb5ff4ead56d395925829b69a84e54 /src/lib/prog_loaders.c
parent19825e8e375d1c4d0448e7ffe3bb2e2c230c9eea (diff)
console,boot_state: Exclude printk() from reported times
Use monotonic timer to accumulate the time spent in console code. For bootblock and romstage, only stage total is reported. For ramstage each boot_state is reported individually. Change-Id: Id3998bab553ff803a93257a3f2c7bfea44c31729 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36574 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/lib/prog_loaders.c')
-rw-r--r--src/lib/prog_loaders.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index 72c1de1e34..43f4689940 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -72,6 +72,8 @@ void run_romstage(void)
timestamp_add_now(TS_END_COPYROM);
+ console_time_report();
+
prog_run(&romstage);
fail:
@@ -155,6 +157,8 @@ void run_ramstage(void)
timestamp_add_now(TS_END_COPYRAM);
+ console_time_report();
+
/* This overrides the arg fetched from the relocatable module */
prog_set_arg(&ramstage, cbmem_top());