From: Andreas Larsson Date: Fri, 29 Aug 2014 15:09:18 +0000 (+0200) Subject: sparc: leon: Fix race condition between leon_cycles_offset and timer_interrupt X-Git-Tag: fixes-against-v3.18-rc2~116^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=384859d2af8ead22c9e5a570a4ab89f1b563c8e5;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed