summaryrefslogtreecommitdiff
path: root/host/lib
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 /host/lib
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 'host/lib')
-rw-r--r--host/lib/crossystem.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c
index 41274508..3a418939 100644
--- a/host/lib/crossystem.c
+++ b/host/lib/crossystem.c
@@ -35,7 +35,7 @@
/* Fields that GetVdatString() can get */
typedef enum VdatStringField {
- VDAT_STRING_TIMERS = 0, /* Timer values */
+ VDAT_STRING_DEPRECATED_TIMERS = 0, /* Timer values */
VDAT_STRING_LOAD_FIRMWARE_DEBUG, /* LoadFirmware() debug information */
VDAT_STRING_LOAD_KERNEL_DEBUG, /* LoadKernel() debug information */
VDAT_STRING_MAINFW_ACT /* Active main firmware */
@@ -346,19 +346,6 @@ static char *GetVdatString(char *dest, int size, VdatStringField field)
return NULL;
switch (field) {
- case VDAT_STRING_TIMERS:
- snprintf(dest, size,
- "LFS=%" PRIu64 ",%" PRIu64
- " LF=%" PRIu64 ",%" PRIu64
- " LK=%" PRIu64 ",%" PRIu64,
- sh->timer_vb_init_enter,
- sh->timer_vb_init_exit,
- sh->timer_vb_select_firmware_enter,
- sh->timer_vb_select_firmware_exit,
- sh->timer_vb_select_and_load_kernel_enter,
- sh->timer_vb_select_and_load_kernel_exit);
- break;
-
case VDAT_STRING_LOAD_FIRMWARE_DEBUG:
value = GetVdatLoadFirmwareDebug(dest, size, sh);
break;
@@ -604,8 +591,6 @@ const char *VbGetSystemPropertyString(const char *name, char *dest,
}
} else if (!strcasecmp(name, "mainfw_act")) {
return GetVdatString(dest, size, VDAT_STRING_MAINFW_ACT);
- } else if (!strcasecmp(name, "vdat_timers")) {
- return GetVdatString(dest, size, VDAT_STRING_TIMERS);
} else if (!strcasecmp(name, "vdat_lfdebug")) {
return GetVdatString(dest, size,
VDAT_STRING_LOAD_FIRMWARE_DEBUG);