summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorJonas <jonas.aberg@stericsson.com>2009-11-20 15:23:58 +0100
committerMichael Brandt <Michael.Brandt@stericsson.com>2010-01-13 12:00:28 +0100
commit074f516bda136e5464499fc63a854d8469f8e9fb (patch)
treea558c3f77be82412385b95a375889239f5933186 /cpu
parent2e0649a4f0a40848676fb183437915c1e8dcb866 (diff)
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 <Michael.Brandt@stericsson.com>
Diffstat (limited to 'cpu')
-rwxr-xr-xcpu/arm_cortexa9/stw8500/timer.c3
1 files changed, 2 insertions, 1 deletions
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));
}