aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop3xx/iop331-time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-iop3xx/iop331-time.c')
-rw-r--r--arch/arm/mach-iop3xx/iop331-time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-iop3xx/iop331-time.c b/arch/arm/mach-iop3xx/iop331-time.c
index 1a6d9d661e4b..8eddfac7e2b0 100644
--- a/arch/arm/mach-iop3xx/iop331-time.c
+++ b/arch/arm/mach-iop3xx/iop331-time.c
@@ -58,7 +58,7 @@ static unsigned long iop331_gettimeoffset(void)
58 /* 58 /*
59 * Now convert them to usec. 59 * Now convert them to usec.
60 */ 60 */
61 usec = (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH; 61 usec = (unsigned long)(elapsed / (CLOCK_TICK_RATE/1000000));
62 62
63 return usec; 63 return usec;
64} 64}