summaryrefslogtreecommitdiff
path: root/include/linux/lockdep.h
diff options
context:
space:
mode:
authorAhmed S. Darwish <a.darwish@linutronix.de>2020-07-20 17:55:12 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-07-29 16:14:24 +0200
commit932e46365226324d2cf26d8bdec8b51ceb296948 (patch)
treebef7aec2eec5bc5b2753ef09469faa88b32ddb52 /include/linux/lockdep.h
parent89b88845e05752b3d684eaf147f457c8dfa99c5f (diff)
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 <a.darwish@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200720155530.1173732-7-a.darwish@linutronix.de
Diffstat (limited to 'include/linux/lockdep.h')
0 files changed, 0 insertions, 0 deletions