]> git.sur5r.net Git - u-boot/blobdiff - board/armltd/integrator/timer.c
microblaze: Fix reset function
[u-boot] / board / armltd / integrator / timer.c
index 5406066d151be8e320f31372240236065f11a530..f10a026636222a549026eea488482580577bfcfe 100644 (file)
@@ -95,7 +95,10 @@ int timer_init (void)
 
        /* init the timestamp */
        total_count = 0ULL;
-       reset_timer_masked();
+       /* capure current decrementer value    */
+       lastdec   = READ_TIMER;
+       /* start "advancing" time stamp from 0 */
+       timestamp = 0L;
 
        div_timer = CONFIG_SYS_HZ_CLOCK;
        do_div(div_timer, CONFIG_SYS_HZ);
@@ -107,11 +110,6 @@ int timer_init (void)
 /*
  * timer without interrupts
  */
-void reset_timer (void)
-{
-       reset_timer_masked ();
-}
-
 ulong get_timer (ulong base_ticks)
 {
        return get_timer_masked () - base_ticks;
@@ -134,14 +132,6 @@ void __udelay (unsigned long usec)
        }
 }
 
-void reset_timer_masked (void)
-{
-       /* capure current decrementer value    */
-       lastdec   = READ_TIMER;
-       /* start "advancing" time stamp from 0 */
-       timestamp = 0L;
-}
-
 /* converts the timer reading to U-Boot ticks         */
 /* the timestamp is the number of ticks since reset    */
 ulong get_timer_masked (void)