[U-Boot] [PATCH v1 (WIP) 14/16] [Timer]Replace get_timer() usage in common/
Graeme Russ
graeme.russ at gmail.com
Tue Jun 28 13:41:07 CEST 2011
Signed-off-by: Graeme Russ <graeme.russ at 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
More information about the U-Boot
mailing list