summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/pvclock.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-11-05 00:36:25 +0400
committerGleb Natapov <gleb@redhat.com>2013-11-06 11:32:31 +0400
commit01b71917b55d28c09ade9fb8c683cf0d2aad1858 (patch)
tree5ec0842876cd80c754c486dac1a810850d98ecd6 /arch/x86/kernel/pvclock.c
parentce332f662deb545c8a4f3f58debcca26bb2e44b0 (diff)
downloadlinux-01b71917b55d28c09ade9fb8c683cf0d2aad1858.tar.xz
kvm: optimize out smp_mb after srcu_read_unlock
I noticed that srcu_read_lock/unlock both have a memory barrier, so just by moving srcu_read_unlock earlier we can get rid of one call to smp_mb() using smp_mb__after_srcu_read_unlock instead. Unsurprisingly, the gain is small but measureable using the unit test microbenchmark: before vmcall in the ballpark of 1410 cycles after vmcall in the ballpark of 1360 cycles Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kernel/pvclock.c')
0 files changed, 0 insertions, 0 deletions