summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_api_kernel.c
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-10-14 23:14:59 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-23 16:28:14 +0000
commit77dff643fc445f5faba647fddd4a7b17bb193f26 (patch)
tree782847a89bb41f99f39f6bbd3b918df80c2ed652 /firmware/lib/vboot_api_kernel.c
parent3c477458fa7f1506e722ede38636eaced8810687 (diff)
downloadvboot-77dff643fc445f5faba647fddd4a7b17bb193f26.tar.gz
vboot: remove timers from VbSelectAndLoadKernel and crossystem
These timers have not been used in eons, and an alternative already exists (coreboot's tstamp_table). BUG=b:124141368, chromium:1014102 TEST=make clean && make runtests BRANCH=none Change-Id: Ic0d3e14028315d6f343388c7c1c9d105b7bd58a2 Signed-off-by: Joel Kitching <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1860254 Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/lib/vboot_api_kernel.c')
-rw-r--r--firmware/lib/vboot_api_kernel.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index f46c9544..7108e903 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -240,9 +240,6 @@ static vb2_error_t vb2_kernel_setup(struct vb2_context *ctx,
return VBERROR_INIT_SHARED_DATA;
}
- /* Start timer */
- shared->timer_vb_select_and_load_kernel_enter = VbExGetTimer();
-
/* Translate vboot1 flags back to vboot2 */
if (shared->recovery_reason)
ctx->flags |= VB2_CONTEXT_RECOVERY_MODE;
@@ -365,13 +362,6 @@ static vb2_error_t vb2_kernel_phase4(struct vb2_context *ctx,
static void vb2_kernel_cleanup(struct vb2_context *ctx)
{
vb2_nv_commit(ctx);
-
- /* vb2_shared_data may not have been initialized, and we may not have a
- proper vbsd value. */
- struct vb2_shared_data *sd = vb2_get_sd(ctx);
- if (sd->vbsd)
- /* Stop timer */
- sd->vbsd->timer_vb_select_and_load_kernel_exit = VbExGetTimer();
}
vb2_error_t VbSelectAndLoadKernel(struct vb2_context *ctx,