[U-Boot] [PATCH 4/8] boottime: Apply some key boottime tags into common code

Lee Jones
2012-11-20T14:33:50Z

Here we add boottime tags to the start of the main loop and just
before the opportunity to break into the u-boot shell. This will
provide a more verbose bootgraph when viewed within debugfs.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
common/main.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/common/main.c b/common/main.c
index 592ce07..84c88e9 100644
--- a/common/main.c
+++ b/common/main.c
@@ -40,6 +40,7 @@
#include <hush.h>
#endif

+#include <boottime.h>
#include <post.h>
#include <linux/ctype.h>
#include <menu.h>
@@ -219,6 +220,8 @@ int abortboot(int bootdelay)
{
int abort = 0;

+ boottime_tag("autoboot_delay");
+
#ifdef CONFIG_MENUPROMPT
printf(CONFIG_MENUPROMPT);
#else
@@ -299,6 +302,8 @@ void main_loop (void)
char bcs_set[16];
#endif /* CONFIG_BOOTCOUNT_LIMIT */

+ boottime_tag("main_loop");
+
#ifdef CONFIG_BOOTCOUNT_LIMIT
bootcount = bootcount_load();
bootcount++;
--
1.7.9.5