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 Define reservation_objec...



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

description:
Define reservation_object_has_excl_fence as substitute for abstrusion.

diffstat:

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

diffs (20 lines):

diff -r 929df777c036 -r edd64219e1c0 sys/external/bsd/drm2/include/linux/reservation.h
--- a/sys/external/bsd/drm2/include/linux/reservation.h Sun Dec 19 01:20:45 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/reservation.h Sun Dec 19 01:20:53 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reservation.h,v 1.11 2021/12/19 01:20:30 riastradh Exp $       */
+/*     $NetBSD: reservation.h,v 1.12 2021/12/19 01:20:53 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -122,4 +122,10 @@
 int    reservation_object_kqfilter(struct reservation_object *,
            struct knote *, struct reservation_poll *);
 
+static inline bool
+reservation_object_has_excl_fence(struct reservation_object *robj)
+{
+       return robj->robj_fence != NULL;
+}
+
 #endif /* _LINUX_RESERVATION_H_ */



Home | Main Index | Thread Index | Old Index