diff options
author | Ahmed S. Darwish <a.darwish@linutronix.de> | 2020-08-27 14:40:42 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-09-10 12:19:29 +0300 |
commit | a1f1066133d85d5f42217cc72a2490bb7aa889c5 (patch) | |
tree | 2bbe8a68d6ecd9606b5c9701c512b0fc94fbcee6 /include/linux/rbtree_latch.h | |
parent | 249d053835320cb3e7c00066cf085a6ba9b1f126 (diff) | |
download | linux-a1f1066133d85d5f42217cc72a2490bb7aa889c5.tar.xz |
x86/tsc: Use seqcount_latch_t
Latch sequence counters have unique read and write APIs, and thus
seqcount_latch_t was recently introduced at seqlock.h.
Use that new data type instead of plain seqcount_t. This adds the
necessary type-safety and ensures that only latching-safe seqcount APIs
are to be used.
Signed-off-by: Ahmed S. Darwish <a.darwish@linutronix.de>
[peterz: unwreck cyc2ns_read_begin()]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200827114044.11173-7-a.darwish@linutronix.de
Diffstat (limited to 'include/linux/rbtree_latch.h')
0 files changed, 0 insertions, 0 deletions