Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memory-barriers.txt: Sort wait_event* and wait_on_bit* list alphabetically

Commit 88172700423c ("docs/memory-barriers.txt: Add wait_event_cmd()
and wait_event_exclusive_cmd()") added two APIs without taking care
of the list order. Sort the list for readability.

While there, make it clear that this is incomplete by saying
"for example".

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

authored by

Akira Yokosawa and committed by
Paul E. McKenney
7f8fcc6f 3a866087

+3 -3
+3 -3
Documentation/memory-barriers.txt
··· 2182 2182 2183 2183 which therefore also imply a general memory barrier after setting the state. 2184 2184 The whole sequence above is available in various canned forms, all of which 2185 - interpolate the memory barrier in the right place: 2185 + interpolate the memory barrier in the right place, for example: 2186 2186 2187 2187 wait_event(); 2188 + wait_event_cmd(); 2189 + wait_event_exclusive_cmd(); 2188 2190 wait_event_interruptible(); 2189 2191 wait_event_interruptible_exclusive(); 2190 2192 wait_event_interruptible_timeout(); ··· 2194 2192 wait_event_timeout(); 2195 2193 wait_on_bit(); 2196 2194 wait_on_bit_lock(); 2197 - wait_event_cmd(); 2198 - wait_event_exclusive_cmd(); 2199 2195 2200 2196 2201 2197 Secondly, code that performs a wake up normally follows something like this: