X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib_sh%2Ftime.c;h=e637e95a31689f2ff4c1dc029f9971a64d825aa9;hb=6d0f6bcf337c5261c08fabe12982178c2c489d76;hp=3d33918f28f8d7f1d537b638b77e4ccadfb8bce4;hpb=b02bad128669e567fce87d8df823b06a0144b8db;p=platform%2Fkernel%2Fu-boot.git diff --git a/lib_sh/time.c b/lib_sh/time.c index 3d33918..e637e95 100644 --- a/lib_sh/time.c +++ b/lib_sh/time.c @@ -22,7 +22,7 @@ */ #include -#include +#include static void tmu_timer_start (unsigned int timer) { @@ -63,7 +63,7 @@ void reset_timer (void) void udelay (unsigned long usec) { unsigned int start = get_timer (0); - unsigned int end = start + (usec * ((CFG_HZ + 500000) / 1000000)); + unsigned int end = start + (usec * ((CONFIG_SYS_HZ + 500000) / 1000000)); while (get_timer (0) < end) continue; @@ -71,5 +71,5 @@ void udelay (unsigned long usec) unsigned long get_tbclk (void) { - return CFG_HZ; + return CONFIG_SYS_HZ; }