Signed-off-by: Graeme Russ <graeme.r...@gmail.com>
---
 common/cmd_misc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/cmd_misc.c b/common/cmd_misc.c
index 061b1bb..40f84d2 100644
--- a/common/cmd_misc.c
+++ b/common/cmd_misc.c
@@ -29,7 +29,7 @@
 
 int do_sleep (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-       ulong start = get_timer(0);
+       ulong start = time_now_ms();
        ulong delay;
 
        if (argc != 2)
@@ -37,7 +37,7 @@ int do_sleep (cmd_tbl_t *cmdtp, int flag, int argc, char * 
const argv[])
 
        delay = simple_strtoul(argv[1], NULL, 10) * CONFIG_SYS_HZ;
 
-       while (get_timer(start) < delay) {
+       while (time_since_ms(start) < delay) {
                if (ctrlc ())
                        return (-1);
 
-- 
1.7.5.2.317.g391b14

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to