summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop3xx/iop321-time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-iop3xx/iop321-time.c')
-rw-r--r--arch/arm/mach-iop3xx/iop321-time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-iop3xx/iop321-time.c b/arch/arm/mach-iop3xx/iop321-time.c
index d53af166950..0039793b694 100644
--- a/arch/arm/mach-iop3xx/iop321-time.c
+++ b/arch/arm/mach-iop3xx/iop321-time.c
@@ -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;
}