ARM: OMAP: 32k counter: Provide y2038-safe omap_read_persistent_clock() replacement
authorXunlei Pang <pang.xunlei@linaro.org>
Thu, 2 Apr 2015 03:34:24 +0000 (20:34 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Apr 2015 06:18:21 +0000 (08:18 +0200)
commita451570c008b9e19592e29f15cfd295bdf818c7a
tree86e5932d0b6c97641b4793d0211a71edb4ddc4b6
parent3c00a1fe8496ff29ab62764bb3f4ce4b48089004
ARM: OMAP: 32k counter: Provide y2038-safe omap_read_persistent_clock() replacement

As part of addressing "y2038 problem" for in-kernel uses, this
patch adds the y2038-safe omap_read_persistent_clock64() using
timespec64.

Because we rely on some subsequent changes to convert arm
multiarch support, omap_read_persistent_clock() will be removed
then.

Also remove the needless spinlock, because
read_persistent_clock() doesn't run simultaneously.

Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1427945681-29972-5-git-send-email-john.stultz@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/arm/plat-omap/counter_32k.c