Searched hist:"85 c3d2dd" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/time/ |
H A D | sched_clock.c | 85c3d2dd Thu Jul 18 18:21:15 CDT 2013 Stephen Boyd <sboyd@codeaurora.org> 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> 85c3d2dd Thu Jul 18 18:21:15 CDT 2013 Stephen Boyd <sboyd@codeaurora.org> 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>
|