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

Ben Hutchings ben at decadent.org.uk
Tue Nov 27 15:05:20 UTC 2012


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.

Ben.

-- 
Ben Hutchings
Never attribute to conspiracy what can adequately be explained by stupidity.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-omap-counter-add-locking-to-read_persistent_clock.patch
Type: text/x-patch
Size: 1943 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20121127/de6989c9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20121127/de6989c9/attachment.sig>


More information about the kernel-team mailing list