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 Add rcu_access_pointer a...



details:   https://anonhg.NetBSD.org/src/rev/f782f42bc2da
branches:  trunk
changeset: 1027931:f782f42bc2da
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:18:09 2021 +0000

description:
Add rcu_access_pointer and rcu_pointer_handoff.

diffstat:

 sys/external/bsd/drm2/include/linux/rcupdate.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r e97df2cae972 -r f782f42bc2da sys/external/bsd/drm2/include/linux/rcupdate.h
--- a/sys/external/bsd/drm2/include/linux/rcupdate.h    Sun Dec 19 01:18:02 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/rcupdate.h    Sun Dec 19 01:18:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rcupdate.h,v 1.9 2021/12/19 01:18:02 riastradh Exp $   */
+/*     $NetBSD: rcupdate.h,v 1.10 2021/12/19 01:18:09 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -57,6 +57,15 @@
        (P);                                                                  \
 })
 
+#define        rcu_access_pointer(P) ({                                              \
+       __typeof__(*(P)) *__rcu_access_pointer_tmp = (P);                     \
+       __insn_barrier();                                                     \
+       __rcu_access_pointer_tmp;                                             \
+})
+
+/* kill_dependency */
+#define        rcu_pointer_handoff(P)  (P)
+
 struct rcu_head {
        void            (*rcuh_callback)(struct rcu_head *);
        struct rcu_head *rcuh_next;



Home | Main Index | Thread Index | Old Index