Module Name: src
Committed By: riastradh
Date: Sun Dec 19 01:50:10 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/linux: seqlock.h
Log Message:
const const const const const
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/include/linux/seqlock.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/seqlock.h
diff -u src/sys/external/bsd/drm2/include/linux/seqlock.h:1.4 src/sys/external/bsd/drm2/include/linux/seqlock.h:1.5
--- src/sys/external/bsd/drm2/include/linux/seqlock.h:1.4 Sun Dec 19 01:25:50 2021
+++ src/sys/external/bsd/drm2/include/linux/seqlock.h Sun Dec 19 01:50:10 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: seqlock.h,v 1.4 2021/12/19 01:25:50 riastradh Exp $ */
+/* $NetBSD: seqlock.h,v 1.5 2021/12/19 01:50:10 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@ write_seqcount_end(struct seqcount *seqc
}
static inline unsigned
-__read_seqcount_begin(struct seqcount *seqcount)
+__read_seqcount_begin(const struct seqcount *seqcount)
{
unsigned gen;
@@ -91,7 +91,7 @@ __read_seqcount_begin(struct seqcount *s
}
static inline bool
-__read_seqcount_retry(struct seqcount *seqcount, unsigned gen)
+__read_seqcount_retry(const struct seqcount *seqcount, unsigned gen)
{
__insn_barrier();
@@ -99,7 +99,7 @@ __read_seqcount_retry(struct seqcount *s
}
static inline unsigned
-read_seqcount_begin(struct seqcount *seqcount)
+read_seqcount_begin(const struct seqcount *seqcount)
{
unsigned gen;
@@ -110,7 +110,7 @@ read_seqcount_begin(struct seqcount *seq
}
static inline bool
-read_seqcount_retry(struct seqcount *seqcount, unsigned gen)
+read_seqcount_retry(const struct seqcount *seqcount, unsigned gen)
{
membar_consumer();
@@ -118,7 +118,7 @@ read_seqcount_retry(struct seqcount *seq
}
static inline unsigned
-raw_read_seqcount(struct seqcount *seqcount)
+raw_read_seqcount(const struct seqcount *seqcount)
{
unsigned gen;
@@ -178,14 +178,14 @@ write_sequnlock(struct seqlock *seqlock)
} while (0)
static inline unsigned
-read_seqbegin(struct seqlock *seqlock)
+read_seqbegin(const struct seqlock *seqlock)
{
return read_seqcount_begin(&seqlock->sql_count);
}
static inline bool
-read_seqretry(struct seqlock *seqlock, unsigned gen)
+read_seqretry(const struct seqlock *seqlock, unsigned gen)
{
return read_seqcount_retry(&seqlock->sql_count, gen);