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 raw_read_seqcount
details: https://anonhg.NetBSD.org/src/rev/af80b80dea96
branches: trunk
changeset: 1027990:af80b80dea96
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:25:50 2021 +0000
description:
raw_read_seqcount
diffstat:
sys/external/bsd/drm2/include/linux/seqlock.h | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 831a90085e1a -r af80b80dea96 sys/external/bsd/drm2/include/linux/seqlock.h
--- a/sys/external/bsd/drm2/include/linux/seqlock.h Sun Dec 19 01:25:42 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/seqlock.h Sun Dec 19 01:25:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: seqlock.h,v 1.3 2021/12/19 01:21:30 riastradh Exp $ */
+/* $NetBSD: seqlock.h,v 1.4 2021/12/19 01:25:50 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -117,6 +117,17 @@
return __read_seqcount_retry(seqcount, gen);
}
+static inline unsigned
+raw_read_seqcount(struct seqcount *seqcount)
+{
+ unsigned gen;
+
+ gen = seqcount->sqc_gen;
+ membar_consumer();
+
+ return gen;
+}
+
struct seqlock {
kmutex_t sql_lock;
struct seqcount sql_count;
Home |
Main Index |
Thread Index |
Old Index