lib: Add time stamp when starting to finalize chips
Add the new time stamps *finalize chips* to track, when the method `dev_finalize_chips()` is called, so that the real time of `write_tables()` is known. Change-Id: I65ca0ec4c07c2eaa14982989cb206d23d8a2293f Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: https://review.coreboot.org/17725 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -56,6 +56,7 @@ enum timestamp_id {
|
|||||||
TS_DEVICE_DONE = 70,
|
TS_DEVICE_DONE = 70,
|
||||||
TS_CBMEM_POST = 75,
|
TS_CBMEM_POST = 75,
|
||||||
TS_WRITE_TABLES = 80,
|
TS_WRITE_TABLES = 80,
|
||||||
|
TS_FINALIZE_CHIPS = 85,
|
||||||
TS_LOAD_PAYLOAD = 90,
|
TS_LOAD_PAYLOAD = 90,
|
||||||
TS_ACPI_WAKE_JUMP = 98,
|
TS_ACPI_WAKE_JUMP = 98,
|
||||||
TS_SELFBOOT_JUMP = 99,
|
TS_SELFBOOT_JUMP = 99,
|
||||||
@ -141,6 +142,7 @@ static const struct timestamp_id_to_name {
|
|||||||
{ TS_DEVICE_DONE, "device setup done" },
|
{ TS_DEVICE_DONE, "device setup done" },
|
||||||
{ TS_CBMEM_POST, "cbmem post" },
|
{ TS_CBMEM_POST, "cbmem post" },
|
||||||
{ TS_WRITE_TABLES, "write tables" },
|
{ TS_WRITE_TABLES, "write tables" },
|
||||||
|
{ TS_FINALIZE_CHIPS, "finalize chips" },
|
||||||
{ TS_LOAD_PAYLOAD, "load payload" },
|
{ TS_LOAD_PAYLOAD, "load payload" },
|
||||||
{ TS_ACPI_WAKE_JUMP, "ACPI wake jump" },
|
{ TS_ACPI_WAKE_JUMP, "ACPI wake jump" },
|
||||||
{ TS_SELFBOOT_JUMP, "selfboot jump" },
|
{ TS_SELFBOOT_JUMP, "selfboot jump" },
|
||||||
|
@ -212,6 +212,7 @@ static boot_state_t bs_write_tables(void *arg)
|
|||||||
*/
|
*/
|
||||||
write_tables();
|
write_tables();
|
||||||
|
|
||||||
|
timestamp_add_now(TS_FINALIZE_CHIPS);
|
||||||
dev_finalize_chips();
|
dev_finalize_chips();
|
||||||
|
|
||||||
return BS_PAYLOAD_LOAD;
|
return BS_PAYLOAD_LOAD;
|
||||||
|
Reference in New Issue
Block a user