Re: [PATCH 055/270] ARM: OMAP: counter: add locking toread_persistent_clock

From: Greg Kroah-Hartman
Date: Thu Nov 29 2012 - 20:49:13 EST


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@xxxxxxxxxxx>
> >
> > 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@xxxxxxxxxxx>
> > Signed-off-by: R Sricharan <r.sricharan@xxxxxx>
> > Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>
> > Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@xxxxxxxxxxxxx>
> [...]
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/