Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux atomic_set_release



details:   https://anonhg.NetBSD.org/src/rev/53dd3805d1d1
branches:  trunk
changeset: 1028427:53dd3805d1d1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:01:44 2021 +0000

description:
atomic_set_release

diffstat:

 sys/external/bsd/drm2/include/linux/atomic.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 6f8791f2fdf4 -r 53dd3805d1d1 sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h      Sun Dec 19 11:01:37 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h      Sun Dec 19 11:01:44 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.30 2021/12/19 10:57:12 riastradh Exp $    */
+/*     $NetBSD: atomic.h,v 1.31 2021/12/19 11:01:44 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -85,6 +85,12 @@
 }
 
 static inline void
+atomic_set_release(atomic_t *atomic, int value)
+{
+       atomic_store_release(&atomic->a_u.au_int, value);
+}
+
+static inline void
 atomic_add(int addend, atomic_t *atomic)
 {
        /* no membar */



Home | Main Index | Thread Index | Old Index