diff options
author | Jonas <jonas.aberg@stericsson.com> | 2009-11-20 15:23:58 +0100 |
---|---|---|
committer | Michael Brandt <Michael.Brandt@stericsson.com> | 2010-01-13 12:00:28 +0100 |
commit | 074f516bda136e5464499fc63a854d8469f8e9fb (patch) | |
tree | a558c3f77be82412385b95a375889239f5933186 /cpu | |
parent | 2e0649a4f0a40848676fb183437915c1e8dcb866 (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-x | cpu/arm_cortexa9/stw8500/timer.c | 3 |
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)); } |