timekeeping: Split timekeeper_lock into lock and seqcount
authorThomas Gleixner <tglx@linutronix.de>
Thu, 21 Feb 2013 22:51:38 +0000 (22:51 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 22 Mar 2013 23:20:01 +0000 (16:20 -0700)
commit9a7a71b1d0968fc2bd602b7481cde1d4872e01ff
tree18954e171dcf260a7750ad6be2f70bac7ef63a78
parent7e40672d930b369c1984457233ec5557aa53bfb8
timekeeping: Split timekeeper_lock into lock and seqcount

We want to shorten the seqcount write hold time. So split the seqlock
into a lock and a seqcount.

Open code the seqwrite_lock in the places which matter and drop the
sequence counter update where it's pointless.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[jstultz: Merge fixups from CLOCK_TAI collisions]
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/timekeeping.c