]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib/time.c
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / lib / time.c
index 8361ddd69b648e1874a8e41302717da7202cef7a..09bb05a24d331b0f023a149024278952e0e89054 100644 (file)
@@ -37,7 +37,7 @@ unsigned long notrace timer_read_counter(void)
 #endif
 }
 #else
-extern unsigned long timer_read_counter(void);
+extern unsigned long __weak timer_read_counter(void);
 #endif
 
 unsigned long long __weak notrace get_ticks(void)
@@ -51,7 +51,7 @@ unsigned long long __weak notrace get_ticks(void)
        return ((unsigned long long)gd->timebase_h << 32) | gd->timebase_l;
 }
 
-static unsigned long long notrace tick_to_time(unsigned long long tick)
+static unsigned long long notrace tick_to_time(uint64_t tick)
 {
        unsigned int div = get_tbclk();
 
@@ -71,7 +71,7 @@ unsigned long __weak notrace timer_get_us(void)
 }
 static unsigned long long usec_to_tick(unsigned long usec)
 {
-       unsigned long long tick = usec * get_tbclk();
+       uint64_t tick = usec * get_tbclk();
        usec *= get_tbclk();
        do_div(tick, 1000000);
        return tick;