From: Heiko Schocher <hs@denx.de>
Date: Wed, 14 Sep 2011 19:34:33 +0000 (+0000)
Subject: arm, post: add missing post_time_ms for arm
X-Git-Tag: v2025.01-rc5-pxa1908~18631^2~78
X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=f31a911fe;p=u-boot.git

arm, post: add missing post_time_ms for arm

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
---

diff --git a/post/post.c b/post/post.c
index 636d93fc8b..dc9c0f2cf8 100644
--- a/post/post.c
+++ b/post/post.c
@@ -500,7 +500,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