diff options
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/at91sam926x_time.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91sam926x_time.c b/arch/arm/mach-at91/at91sam926x_time.c index 59cbbe1e8161..a4dded27fa16 100644 --- a/arch/arm/mach-at91/at91sam926x_time.c +++ b/arch/arm/mach-at91/at91sam926x_time.c | |||
@@ -30,7 +30,6 @@ | |||
30 | * Returns number of microseconds since last timer interrupt. Note that interrupts | 30 | * Returns number of microseconds since last timer interrupt. Note that interrupts |
31 | * will have been disabled by do_gettimeofday() | 31 | * will have been disabled by do_gettimeofday() |
32 | * 'LATCH' is hwclock ticks (see CLOCK_TICK_RATE in timex.h) per jiffy. | 32 | * 'LATCH' is hwclock ticks (see CLOCK_TICK_RATE in timex.h) per jiffy. |
33 | * 'tick' is usecs per jiffy (linux/timex.h). | ||
34 | */ | 33 | */ |
35 | static unsigned long at91sam926x_gettimeoffset(void) | 34 | static unsigned long at91sam926x_gettimeoffset(void) |
36 | { | 35 | { |
@@ -39,7 +38,7 @@ static unsigned long at91sam926x_gettimeoffset(void) | |||
39 | 38 | ||
40 | elapsed = (PIT_PICNT(t) * LATCH) + PIT_CPIV(t); /* hardware clock cycles */ | 39 | elapsed = (PIT_PICNT(t) * LATCH) + PIT_CPIV(t); /* hardware clock cycles */ |
41 | 40 | ||
42 | return (unsigned long)(elapsed * 1000000) / LATCH; | 41 | return (unsigned long)(elapsed * jiffies_to_usecs(1)) / LATCH; |
43 | } | 42 | } |
44 | 43 | ||
45 | /* | 44 | /* |