diff options
| author | Ahmed S. Darwish <[email protected]> | 2020-07-20 15:55:12 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2020-07-29 14:14:24 +0000 |
| commit | 932e46365226324d2cf26d8bdec8b51ceb296948 (patch) | |
| tree | bef7aec2eec5bc5b2753ef09469faa88b32ddb52 /init/init_task.c | |
| parent | seqlock: Add kernel-doc for seqcount_t and seqlock_t APIs (diff) | |
| download | kernel-932e46365226324d2cf26d8bdec8b51ceb296948.tar.gz kernel-932e46365226324d2cf26d8bdec8b51ceb296948.zip | |
seqlock: Implement raw_seqcount_begin() in terms of raw_read_seqcount()
raw_seqcount_begin() has the same code as raw_read_seqcount(), with the
exception of masking the sequence counter's LSB before returning it to
the caller.
Note, raw_seqcount_begin() masks the counter's LSB before returning it
to the caller so that read_seqcount_retry() can fail if the counter is
odd -- without the overhead of an extra branching instruction.
Signed-off-by: Ahmed S. Darwish <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions
