summaryrefslogtreecommitdiffstats
path: root/common/clock.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-11-24 20:49:38 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-12-03 11:12:46 +0100
commitc762cdbb021987177e9e8912cb0f8b8dd46cf213 (patch)
treeeada08d830d1ad02cc38600d352775a315d86f2c /common/clock.c
parent9434fe68e4c1e85e6f8071dd408e33c959e712e1 (diff)
downloadbarebox-c762cdbb021987177e9e8912cb0f8b8dd46cf213.tar.gz
clock.c: use USECOND and MSECOND
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/clock.c')
-rw-r--r--common/clock.c4
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);