summaryrefslogtreecommitdiffstats
path: root/include/linux/input
diff options
context:
space:
mode:
authorAhmed S. Darwish <a.darwish@linutronix.de>2020-07-20 17:55:09 +0200
committerPeter Zijlstra <peterz@infradead.org>2020-07-29 16:14:23 +0200
commitd3b35b87f436c1b226a8061bee9c8875ba6658bd (patch)
treecad4767b0a4fdc9e78dbb30128c0654e81fcf2af /include/linux/input
parent15cbe67bbd3adeb4854c42713dbeaf2ff876beee (diff)
downloadlinux-stable-d3b35b87f436c1b226a8061bee9c8875ba6658bd.tar.gz
linux-stable-d3b35b87f436c1b226a8061bee9c8875ba6658bd.tar.bz2
linux-stable-d3b35b87f436c1b226a8061bee9c8875ba6658bd.zip
seqlock: seqcount_t latch: End read sections with read_seqcount_retry()
The seqcount_t latch reader example at the raw_write_seqcount_latch() kernel-doc comment ends the latch read section with a manual smp memory barrier and sequence counter comparison. This is technically correct, but it is suboptimal: read_seqcount_retry() already contains the same logic of an smp memory barrier and sequence counter comparison. End the latch read critical section example with read_seqcount_retry(). 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-4-a.darwish@linutronix.de
Diffstat (limited to 'include/linux/input')
0 files changed, 0 insertions, 0 deletions