aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2008-07-09 00:15:32 -0400
committerIngo Molnar <[email protected]>2008-07-11 15:53:27 +0200
commita83bc47c33ab182f1e48977fd5a04024d713c75e (patch)
tree759eb1afc83271ee2815dbd1214635ec7b506b5c /net/unix/sysctl_net_unix.c
parentc0c87734f125d2fa8ebc70310f3257fa6209f2b6 (diff)
sched_clock: record TSC after gtod
To read the gtod we need to grab the xtime lock for read. Reading the gtod before the TSC can cause a bigger gab if the xtime lock is contended. This patch simply reverses the order to read the TSC after the gtod. The locking in the reading of the gtod handles any barriers one might think is needed. Signed-off-by: Steven Rostedt <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Andrew Morton <[email protected]> Cc: john stultz <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions