summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-12-19 15:27:44 -0800
committerGerrit <chrome-bot@google.com>2011-12-20 16:14:41 -0800
commite039e5b9a50b26e1a8edf5bbdd2c7ebf87b107ec (patch)
tree8f60ebe817d16c335897e5e64259f963250779c2 /arch
parent6527a57b5715ac7a9aafd2f2f638ad88567d82f9 (diff)
Add a new boot stage to time relocation
Relocation takes about 40ms of the boot time, so add a timer to track it. BUG=chromium-os:22938 TEST=build and boot on Kaen Change-Id: If936bc8ff9a23f6dd885f60e845a597ac7edad97 Reviewed-on: https://gerrit.chromium.org/gerrit/13203 Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Commit-Ready: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/lib/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index a204e9045e..7f8daf7f8f 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -471,6 +471,7 @@ void board_init_f (ulong bootflag)
}
memcpy (id, (void *)gd, sizeof (gd_t));
+ bootstage_mark(BOOTSTAGE_START_RELOC, "relocate");
relocate_code (addr_sp, id, addr);
/* NOTREACHED - relocate_code() does not return */