]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched_clock: Use seqcount instead of rolling our own
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 18 Jul 2013 23:21:15 +0000 (16:21 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 30 Jul 2013 18:24:20 +0000 (11:24 -0700)
commit85c3d2dd15be4d577a37ffb8bbbd019fc8e3280a
treedb6f0d5ed69e55b7509793c111dc0dc5a57d43fd
parent87d8b9eb7eb6669aad6435a51e9862362141ba76
sched_clock: Use seqcount instead of rolling our own

We're going to increase the cyc value to 64 bits in the near
future. Doing that is going to break the custom seqcount
implementation in the sched_clock code because 64 bit numbers
aren't guaranteed to be atomic. Replace the cyc_copy with a
seqcount to avoid this problem.

Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/sched_clock.c