diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-18 06:58:42 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-26 21:11:31 +0000 |
commit | 101ef0b528461a3fb662db150b16607430a2bd94 (patch) | |
tree | aa1ab0d8cba232e03d3f468728e8edc03e8e9c8c /src/include | |
parent | cd7a70f4879ff6e0f3e334ddf1031ccf0c0d31cf (diff) |
lib/bootblock: Add simplified entry with basetime
This allows for minor optimization as num_timestamps becomes
a constant zero for a function with local scope. The loop
with calls to timestamp_add() gets removed from bootblock.
Change-Id: Id230075c0e76fe377b6ea8c8ddf8318e07d29b91
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34972
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/bootblock_common.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/include/bootblock_common.h b/src/include/bootblock_common.h index 08b2b7ad6d..1081f27453 100644 --- a/src/include/bootblock_common.h +++ b/src/include/bootblock_common.h @@ -38,16 +38,7 @@ void bootblock_soc_init(void); asmlinkage void bootblock_c_entry(uint64_t base_timestamp); asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist); -/* - * This is a the same as the bootblock main(), with the difference that it does - * not collect a timestamp. Instead it accepts the initial timestamp and - * possibly additional timestamp entries as arguments. This can be used in cases - * where earlier stamps are available. Note that this function is designed to be - * entered from C code. This function assumes that the timer has already been - * initialized, so it does not call init_timer(). - */ -asmlinkage void bootblock_main_with_timestamp(uint64_t base_timestamp, - struct timestamp_entry *timestamps, size_t num_timestamps); +void bootblock_main_with_basetime(uint64_t base_timestamp); /* This is the argument structure passed from decompressor to bootblock. */ struct bootblock_arg { |