summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2015-12-27 15:55:35 (GMT)
committerMichael S. Tsirkin <mst@redhat.com>2016-01-12 18:47:00 (GMT)
commita65961272e1ebdb60804bbe2bb440481fcbd1c76 (patch)
treeb88a96970204049d3934e5e16b61ceb64862335e /arch
parentd307fb16f788823b29aab9aa7e4821ac8a124b19 (diff)
downloadlinux-a65961272e1ebdb60804bbe2bb440481fcbd1c76.tar.xz
virtio_ring: update weak barriers to use virt_xxx
virtio ring uses smp_wmb on SMP and wmb on !SMP, the reason for the later being that it might be talking to another kernel on the same SMP machine. This is exactly what virt_xxx barriers do, so switch to these instead of homegrown ifdef hacks. Cc: Peter Zijlstra <peterz@infradead.org> Cc: Alexander Duyck <alexander.duyck@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions