Makefile: Define UNROLL_LOOPS to save ~50ms of boot time

TEST=Able to save ~50ms of bootime with this CL

Without this CL

1100:finished vboot kernel verification                802,443 (148,108)

With this CL

1100:finished vboot kernel verification                775,914 (102,601)

Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Change-Id: I96bea22667ebf45b446a26d84de96e52f3d28aa0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1919094
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Subrata Banik 2019-11-18 17:57:01 +05:30 committed by Commit Bot
parent 1c4dbaa084
commit 7dedd9a888
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ ${TLCL_OBJS}: CFLAGS += -DTPM_BLOCKING_CONTINUESELFTEST
# CFLAGS += -DTPM_MANUAL_SELFTEST
ifeq (${FIRMWARE_ARCH},i386)
ifneq ($(filter $(FIRMWARE_ARCH),x86 x86_64),)
# Unrolling loops in cryptolib makes it faster
${FWLIB_OBJS}: CFLAGS += -DUNROLL_LOOPS
${FWLIB2X_OBJS}: CFLAGS += -DUNROLL_LOOPS