Commit 2ac7b327 authored by David Vrabel's avatar David Vrabel Committed by Russell King

[ARM PATCH] 2013/1: IXP4xx: Make clock monotonic

Patch from David Vrabel

ixp4xx_gettimeoffset uses an incorrectly rounded divisor. This results in a non-monotonic clock.
parent 15aeed93
......@@ -207,7 +207,7 @@ void __init ixp4xx_init_irq(void)
static unsigned volatile last_jiffy_time;
#define CLOCK_TICKS_PER_USEC (CLOCK_TICK_RATE / USEC_PER_SEC)
#define CLOCK_TICKS_PER_USEC ((CLOCK_TICK_RATE + USEC_PER_SEC/2) / USEC_PER_SEC)
/* IRQs are disabled before entering here from do_gettimeofday() */
static unsigned long ixp4xx_gettimeoffset(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment