[U-Boot] [PATCH] arm, post: add missing post_time_ms for arm

Heiko Schocher hs at denx.de
Thu Sep 15 07:34:33 CEST 2011


Signed-off-by: Heiko Schocher <hs at denx.de>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
---
 post/post.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/post/post.c b/post/post.c
index 6c59f91..0bfca75 100644
--- a/post/post.c
+++ b/post/post.c
@@ -488,7 +488,7 @@ void post_reloc(void)
  */
 unsigned long post_time_ms(unsigned long base)
 {
-#ifdef CONFIG_PPC
+#if defined(CONFIG_PPC) || defined(CONFIG_ARM)
 	return (unsigned long)(get_ticks() / (get_tbclk() / CONFIG_SYS_HZ))
 		- base;
 #else
-- 
1.7.6



More information about the U-Boot mailing list