]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-common.c
cpus-common: stop using mb_set/mb_read
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 Mar 2023 10:07:04 +0000 (11:07 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 29 Apr 2023 12:19:01 +0000 (14:19 +0200)
commit42abcc584174166342297421209932a87bdb85f1
tree229e9f884e4bb48e74b2bfdbb99f4e9ded19280b
parentd66ba6dc1cce914673bd8a89fca30a7715ea70d1
cpus-common: stop using mb_set/mb_read

Use a store-release at the end of the work item, and a load-acquire when
waiting for the item to be completed.  This is the standard message passing
pattern and is both enough and clearer than mb_read/mb_set.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cpus-common.c