aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/mpmc_ptr_ring.h
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-06-17 18:08:56 +0200
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-06-17 18:09:06 +0200
commit7da2b98a4d71f6cf8d1b3362b20afd93f65eb215 (patch)
tree3d85845c8607b0f91f87a48c6ffb27119a5db8f8 /src/mpmc_ptr_ring.h
parentselftest/mpmc_ring: Add more __init/__initdata annotations (diff)
downloadwireguard-monolithic-historical-7da2b98a4d71f6cf8d1b3362b20afd93f65eb215.tar.xz
wireguard-monolithic-historical-7da2b98a4d71f6cf8d1b3362b20afd93f65eb215.zip
mpmc_ptr_ring: Fix a word
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to 'src/mpmc_ptr_ring.h')
-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();