]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP: counter: add locking to read_persistent_clock
authorColin Cross <ccross@android.com>
Mon, 8 Oct 2012 21:01:12 +0000 (14:01 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 8 Oct 2012 21:01:12 +0000 (14:01 -0700)
commit4b44b054d12838dd25df2cb9964069e418204cbf
tree9b46831e4161307d6571724654f049da5b04a55a
parentb8ce3c4536e9a8e2280a6c113ed2b78d0ba5f0f4
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: Colin Cross <ccross@android.com>
Signed-off-by: R Sricharan <r.sricharan@ti.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/counter_32k.c