summaryrefslogtreecommitdiffstats
path: root/common/clock.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-06-14 20:44:02 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-15 09:01:09 +0200
commitf51469032fd6bd36133c779491e080e3ff9fb3a5 (patch)
treeda8350d02a64b4fc4ff5d58fa7f44a902517f891 /common/clock.c
parentaade6ceb29765f1d53e659560fb9123636c0f2d2 (diff)
downloadbarebox-f51469032fd6bd36133c779491e080e3ff9fb3a5.tar.gz
clock: Use udelay() to implement mdelay()
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 f98176d..7f5cff2 100644
--- a/common/clock.c
+++ b/common/clock.c
@@ -206,9 +206,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);