Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hppa/hppa hppa: Convert ipiuncs.c to membar_release...



details:   https://anonhg.NetBSD.org/src/rev/316f130685e7
branches:  trunk
changeset: 365156:316f130685e7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Apr 09 23:43:12 2022 +0000

description:
hppa: Convert ipiuncs.c to membar_release/acquire.

diffstat:

 sys/arch/hppa/hppa/ipifuncs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 6b4dab534fb1 -r 316f130685e7 sys/arch/hppa/hppa/ipifuncs.c
--- a/sys/arch/hppa/hppa/ipifuncs.c     Sat Apr 09 23:42:56 2022 +0000
+++ b/sys/arch/hppa/hppa/ipifuncs.c     Sat Apr 09 23:43:12 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipifuncs.c,v 1.6 2022/02/12 17:09:07 riastradh Exp $   */
+/*     $NetBSD: ipifuncs.c,v 1.7 2022/04/09 23:43:12 riastradh Exp $   */
 /*     $OpenBSD: ipi.c,v 1.4 2011/01/14 13:20:06 jsing Exp $   */
 
 /*
@@ -83,7 +83,7 @@
 
        /* Handle an IPI. */
        ipi_pending = atomic_swap_ulong(&ci->ci_ipi, 0);
-       membar_enter(); /* matches membar_exit in xc_send_ipi, cpu_ipi */
+       membar_acquire(); /* matches membar_release in xc_send_ipi, cpu_ipi */
 
        KASSERT(ipi_pending);
 
@@ -169,7 +169,7 @@
        KASSERT(kpreempt_disabled());
        KASSERT(curcpu() != ci);
 
-       membar_exit();          /* matches membar_enter in hppa_ipi_intr */
+       membar_release();       /* matches membar_acquire in hppa_ipi_intr */
        if (ci) {
                /* Unicast: remote CPU. */
                hppa_ipi_send(ci, HPPA_IPI_XCALL);
@@ -185,7 +185,7 @@
        KASSERT(kpreempt_disabled());
        KASSERT(curcpu() != ci);
 
-       membar_exit();          /* matches membar_enter in hppa_ipi_intr */
+       membar_release();       /* matches membar_acquire in hppa_ipi_intr */
        if (ci) {
                /* Unicast: remote CPU. */
                hppa_ipi_send(ci, HPPA_IPI_GENERIC);



Home | Main Index | Thread Index | Old Index