[PATCH 05/10] clock.c: use USECOND and MSECOND

Sascha Hauer s.hauer at pengutronix.de
Thu Dec 3 04:53:50 EST 2009


From: Marc Kleine-Budde <mkl at pengutronix.de>

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 common/clock.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/clock.c b/common/clock.c
index ad708ad..8eeb917 100644
--- a/common/clock.c
+++ b/common/clock.c
@@ -104,7 +104,7 @@ void udelay(unsigned long usecs)
 {
 	uint64_t start = get_time_ns();
 
-	while(!is_timeout(start, usecs * 1000));
+	while(!is_timeout(start, usecs * USECOND));
 }
 EXPORT_SYMBOL(udelay);
 
@@ -112,7 +112,7 @@ void mdelay(unsigned long msecs)
 {
 	uint64_t start = get_time_ns();
 
-	while(!is_timeout(start, msecs * 1000000));
+	while(!is_timeout(start, msecs * MSECOND));
 }
 EXPORT_SYMBOL(mdelay);
 
-- 
1.6.5.2





More information about the u-boot-v2 mailing list