From 074f516bda136e5464499fc63a854d8469f8e9fb Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 20 Nov 2009 15:23:58 +0100 Subject: Updated timing measurement structure, changed atags and added idle time measurement. Note: idle time measurement does not seem to work reliable at the moment. Verification needed. Signed-off-by: Michael Brandt --- cpu/arm_cortexa9/stw8500/timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpu') diff --git a/cpu/arm_cortexa9/stw8500/timer.c b/cpu/arm_cortexa9/stw8500/timer.c index 7b4092a9b..f0d015c04 100755 --- a/cpu/arm_cortexa9/stw8500/timer.c +++ b/cpu/arm_cortexa9/stw8500/timer.c @@ -66,7 +66,7 @@ int timer_init(void) writel(MTU_CRn_ENA | MTU_CRn_PRESCALE_16 | MTU_CRn_32BITS, CONFIG_SYS_TIMERBASE + MTU_CR(MTU_TIMER)); reset_timer(); - boottime_tag_uboot_init(); + boottime_tag("uboot_init"); return 0; } @@ -99,4 +99,5 @@ void udelay(unsigned long usec) end = ini + USEC_TO_COUNT(usec); while ((signed)(end - READ_TIMER()) > 0) ; + boottime_idle_add(USEC_TO_COUNT(usec)); } -- cgit v1.2.3