[ARM] 2871/1: Fixes an issue with gettimeofday not working correctly on Intel IOP3xx...
[powerpc.git] / arch / arm / mach-iop3xx / iop321-time.c
index d53af16..0039793 100644 (file)
@@ -60,7 +60,7 @@ static unsigned long iop321_gettimeoffset(void)
        /*
         * Now convert them to usec.
         */
-       usec = (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH;
+       usec = (unsigned long)(elapsed / (CLOCK_TICK_RATE/1000000));
 
        return usec;
 }