summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-08-12 09:46:39 +0000
committerkib <kib@FreeBSD.org>2015-08-12 09:46:39 +0000
commit9458aa2b576bc8a0820858af28632bcabebd4a48 (patch)
tree2b6d336c28863402a29ce09a9837897f501fe0a0 /sys/i386
parentbff0ec5bef3ded3c67c6216c640936ddc7ecc6cc (diff)
downloadFreeBSD-src-9458aa2b576bc8a0820858af28632bcabebd4a48.zip
FreeBSD-src-9458aa2b576bc8a0820858af28632bcabebd4a48.tar.gz
Initialization of smp_tlb_wait does not require release semantic, no
data is synchronized by store/load to the variable. The lapic_write_icr() function ensures that store buffers are flushed before IPI command is issued. Discussed with: bde Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c
index 93845ef..9b8b9c9 100644
--- a/sys/i386/i386/mp_machdep.c
+++ b/sys/i386/i386/mp_machdep.c
@@ -504,7 +504,7 @@ smp_tlb_shootdown(u_int vector, vm_offset_t addr1, vm_offset_t addr2)
mtx_lock_spin(&smp_ipi_mtx);
smp_tlb_addr1 = addr1;
smp_tlb_addr2 = addr2;
- atomic_store_rel_int(&smp_tlb_wait, 0);
+ smp_tlb_wait = 0;
ipi_all_but_self(vector);
while (smp_tlb_wait < ncpu)
ia32_pause();
OpenPOWER on IntegriCloud