OSDN Git Service

tools/virtio: remove smp_read_barrier_depends()
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 28 Nov 2022 03:43:47 +0000 (19:43 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Dec 2022 10:28:11 +0000 (05:28 -0500)
commit81931012bd7dc52fadf2b720605fce8a7148d4a7
treeb7bca86d0c4b590f5f861a9818cc3cc61e61d375
parent8aeac42d60936046a00e67cdf7d27b061df2962f
tools/virtio: remove smp_read_barrier_depends()

This gets rid of the last references to smp_read_barrier_depends()
 which for the kernel side was removed in v5.9. The serialization
required for Alpha is done inside READ_ONCE() instead of having
users deal with it. Simply use a full barrier, the architecture
does not have rmb in the first place.

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Message-Id: <20221128034347.990-3-dave@stgolabs.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
tools/virtio/ringtest/main.h