summaryrefslogtreecommitdiffstats
path: root/sys/sys/seq.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-04-29 04:08:17 +0000
committeradrian <adrian@FreeBSD.org>2015-04-29 04:08:17 +0000
commit84263e95af7a73b8526223931d4b64b0c12639c5 (patch)
treeae1ac1f6bf2ed3cff23ab2b83a7f2f78d77955f7 /sys/sys/seq.h
parent42e24b0f80eabc3b9818b43ee4fa48524f7b656d (diff)
downloadFreeBSD-src-84263e95af7a73b8526223931d4b64b0c12639c5.zip
FreeBSD-src-84263e95af7a73b8526223931d4b64b0c12639c5.tar.gz
Constify some const parameters in seq.h.
The NUMA work I'm doing uses const for read-only parameters, which requires the seq.h API to also use const for read-only parameters. Reviewed by: mjg
Diffstat (limited to 'sys/sys/seq.h')
-rw-r--r--sys/sys/seq.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/seq.h b/sys/sys/seq.h
index eaab86e..21067cb 100644
--- a/sys/sys/seq.h
+++ b/sys/sys/seq.h
@@ -79,7 +79,7 @@ typedef uint32_t seq_t;
* on amd64 but still has unnecessary cost.
*/
static __inline int
-atomic_load_rmb_int(volatile u_int *p)
+atomic_load_rmb_int(volatile const u_int *p)
{
volatile u_int v;
@@ -89,7 +89,7 @@ atomic_load_rmb_int(volatile u_int *p)
}
static __inline int
-atomic_rmb_load_int(volatile u_int *p)
+atomic_rmb_load_int(volatile const u_int *p)
{
volatile u_int v = 0;
@@ -122,7 +122,7 @@ seq_write_end(seq_t *seqp)
}
static __inline seq_t
-seq_read(seq_t *seqp)
+seq_read(const seq_t *seqp)
{
seq_t ret;
@@ -139,7 +139,7 @@ seq_read(seq_t *seqp)
}
static __inline seq_t
-seq_consistent(seq_t *seqp, seq_t oldseq)
+seq_consistent(const seq_t *seqp, seq_t oldseq)
{
return (atomic_rmb_load_int(seqp) == oldseq);
OpenPOWER on IntegriCloud