Skip to content
Commit 9d7d6e36 authored by Colin Cross's avatar Colin Cross Committed by Tony Lindgren
Browse files

ARM: OMAP: counter: add locking to read_persistent_clock



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: default avatarColin Cross <ccross@android.com>
Signed-off-by: default avatarR Sricharan <r.sricharan@ti.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5e090ed7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment