seq: use seq_consistent_nomb in seq_consistent

Constify seqp argument for seq_consistent_nomb.

No functional changes.
This commit is contained in:
Mateusz Guzik 2015-07-08 22:21:25 +00:00
parent 0a3f65a107
commit 06d1ada870

View File

@ -111,18 +111,18 @@ seq_read(const seq_t *seqp)
}
static __inline seq_t
seq_consistent(const seq_t *seqp, seq_t oldseq)
seq_consistent_nomb(const seq_t *seqp, seq_t oldseq)
{
atomic_thread_fence_acq();
return (*seqp == oldseq);
}
static __inline seq_t
seq_consistent_nomb(seq_t *seqp, seq_t oldseq)
seq_consistent(const seq_t *seqp, seq_t oldseq)
{
return (*seqp == oldseq);
atomic_thread_fence_acq();
return (seq_consistent_nomb(seqp, oldseq));
}
#endif /* _KERNEL */