Andreas Larsson 384859d2af sparc: leon: Fix race condition between leon_cycles_offset and timer_interrupt
This makes sure that leon_cycles_offset takes the pending bit into
account and that leon_clear_clock_irq clears the pending bit. Otherwise,
if leon_cycles_offset is executed after the timer has wrapped but before
timer_interrupt has increased timer_cs_internal_counter, time can be
perceived to go backwards.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-09 16:39:10 -07:00
..
2014-09-03 10:08:50 -07:00
2014-08-19 09:40:08 -05:00
2014-09-01 10:28:00 +02:00
2014-08-31 17:08:12 -07:00
2014-08-31 17:08:42 -07:00
2014-07-18 12:13:37 -07:00