summaryrefslogtreecommitdiffstats
path: root/common/clock.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-07-09 08:21:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-07-09 08:21:06 +0200
commit1073955aa5fb777381de710ad314cdbf68fef189 (patch)
tree8991e01bd8ed34c6fd74a110b691727eb4382524 /common/clock.c
parent47d229d5c0fc626707101f0ad6c653ee68a65616 (diff)
parent0fd30cd29b5838b048ed59cc018a74d858567f21 (diff)
downloadbarebox-1073955aa5fb777381de710ad314cdbf68fef189.tar.gz
Merge branch 'for-next/imx8mq'
Diffstat (limited to 'common/clock.c')
-rw-r--r--common/clock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/clock.c b/common/clock.c
index 904bee0..2b218fb 100644
--- a/common/clock.c
+++ b/common/clock.c
@@ -208,9 +208,7 @@ EXPORT_SYMBOL(udelay);
void mdelay(unsigned long msecs)
{
- uint64_t start = get_time_ns();
-
- while(!is_timeout(start, msecs * MSECOND));
+ udelay(msecs * USECOND);
}
EXPORT_SYMBOL(mdelay);