diff options
-rw-r--r-- | common/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/clock.c b/common/clock.c index ad708adbbf..8eeb917af2 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); |