[PATCH 055/270] ARM: OMAP: counter: add locking to read_persistent_clock

Greg Kroah-Hartman gregkh at linuxfoundation.org
Fri Nov 30 01:49:20 UTC 2012


On Tue, Nov 27, 2012 at 03:05:20PM +0000, Ben Hutchings wrote:
> On Mon, 2012-11-26 at 14:55 -0200, Herton Ronaldo Krzesinski wrote:
> > 3.5.7u1 -stable review patch.  If anyone has any objections, please let me know.
> > 
> > ------------------
> > 
> > From: Colin Cross <ccross at android.com>
> > 
> > commit 9d7d6e363b06934221b81a859d509844c97380df upstream.
> > 
> > read_persistent_clock uses a global variable, use a spinlock to
> > ensure non-atomic updates to the variable don't overlap and cause
> > time to move backwards.
> > 
> > Signed-off-by: Colin Cross <ccross at android.com>
> > Signed-off-by: R Sricharan <r.sricharan at ti.com>
> > Signed-off-by: Tony Lindgren <tony at atomide.com>
> > Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski at canonical.com>
> [...]
> 
> This is also missing from 3.4.  I'm attaching the adjusted version for
> 3.2, which looks like it will work for 3.4.

Thanks for the patch, now applied.

greg k-h




More information about the kernel-team mailing list