diff options
author | Stefan Roese <sr@denx.de> | 2007-04-12 14:06:54 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-04-12 14:06:54 +0200 |
commit | e8aac8e7bfc7cfdef5780f8f1d4c85184f59a06f (patch) | |
tree | 1a1ad4bb5f527d162154accd2a3b950956df7aeb /lib_microblaze/time.c | |
parent | a65c5768e5537530bd1780af3d3fddc3113a163c (diff) | |
parent | 6c9ba919375db977aaad9146bf320c7afd07ae7a (diff) |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'lib_microblaze/time.c')
-rw-r--r-- | lib_microblaze/time.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib_microblaze/time.c b/lib_microblaze/time.c index 12e84888bd..3fa1b11262 100644 --- a/lib_microblaze/time.c +++ b/lib_microblaze/time.c @@ -1,6 +1,8 @@ /* + * (C) Copyright 2007 Michal Simek * (C) Copyright 2004 Atmark Techno, Inc. * + * Michal SIMEK <monstr@monstr.eu> * Yasushi SHOJI <yashi@atmark-techno.com> * * See file CREDITS for list of people who contributed to this @@ -22,6 +24,11 @@ * MA 02111-1307 USA */ -void udelay(unsigned long usec) +#include <common.h> + +void udelay (unsigned long usec) { + int i; + i = get_timer (0); + while ((get_timer (0) - i) < (usec / 1000)) ; } |