Skip to content

Commit

Permalink
Remove mfence
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuda-Chen committed Dec 28, 2024
1 parent eebc78a commit edf559c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virtio-snd.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ typedef struct {
// PCM frame ring buffer
virtio_snd_ring_buffer_t ring;
} virtio_snd_prop_t;
#define VSND_COMPILER_BARRIER \
do { \
asm("mfence" ::: "memory"); \
#define VSND_COMPILER_BARRIER \
do { \
asm("" ::: "memory"); \
} while (0)

static virtio_snd_config_t vsnd_configs[VSND_DEV_CNT_MAX];
Expand Down

0 comments on commit edf559c

Please sign in to comment.