aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-07-01 05:28:38 +0200
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-07-01 05:37:07 +0200
commit958b6325f54885a6126f2a89fef3dc3195bb9ac5 (patch)
tree70c4b5ab4e32c4f3e6c246ac42319a82231a8676
parentselftest/mpmc_ring: add more __init/__initdata annotations (diff)
downloadwireguard-monolithic-historical-958b6325f54885a6126f2a89fef3dc3195bb9ac5.tar.xz
wireguard-monolithic-historical-958b6325f54885a6126f2a89fef3dc3195bb9ac5.zip
mpmc_ptr_ring: fix a word
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
-rw-r--r--src/mpmc_ptr_ring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpmc_ptr_ring.h b/src/mpmc_ptr_ring.h
index 258a16f..a09e165 100644
--- a/src/mpmc_ptr_ring.h
+++ b/src/mpmc_ptr_ring.h
@@ -105,7 +105,7 @@ static inline int mpmc_ptr_ring_produce(struct mpmc_ptr_ring *r, void *ptr)
WRITE_ONCE(r->queue[p & mask], ptr);
- /* Wait until it's our term to update the producer tail pointer */
+ /* Wait until it's our turn to update the producer tail pointer */
while (atomic_read(&r->producer_tail) != p)
cpu_relax();