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>
This commit is contained in:
committed by
Patrick Georgi
parent
19825e8e37
commit
45ddb4344f
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user