Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48908
b: refs/heads/master
c: 3392b30
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Victor authored and Russell King committed Feb 8, 2007
1 parent 01d30a8 commit 40cd271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 127a7ec69c9ce17a5add2e3c8c2f1a2733fb88d8
refs/heads/master: 3392b309dbd1f1f37454c412c2045448300cf374
3 changes: 1 addition & 2 deletions trunk/arch/arm/mach-at91/at91sam926x_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* Returns number of microseconds since last timer interrupt. Note that interrupts
* will have been disabled by do_gettimeofday()
* 'LATCH' is hwclock ticks (see CLOCK_TICK_RATE in timex.h) per jiffy.
* 'tick' is usecs per jiffy (linux/timex.h).
*/
static unsigned long at91sam926x_gettimeoffset(void)
{
Expand All @@ -39,7 +38,7 @@ static unsigned long at91sam926x_gettimeoffset(void)

elapsed = (PIT_PICNT(t) * LATCH) + PIT_CPIV(t); /* hardware clock cycles */

return (unsigned long)(elapsed * 1000000) / LATCH;
return (unsigned long)(elapsed * jiffies_to_usecs(1)) / LATCH;
}

/*
Expand Down

0 comments on commit 40cd271

Please sign in to comment.