diff options
author | 2024-11-22 09:44:14 -0800 | |
---|---|---|
committer | 2024-12-02 12:01:37 +0100 | |
commit | 96450ead16527cbef559b5bd046182e731228f95 (patch) | |
tree | 516ee8a88ccd3d66cfb81b6a13e5d40e6e7baeec /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | perf/x86/rapl: Add core energy counter support for AMD CPUs (diff) | |
download | wireguard-linux-96450ead16527cbef559b5bd046182e731228f95.tar.xz wireguard-linux-96450ead16527cbef559b5bd046182e731228f95.zip |
seqlock: add raw_seqcount_try_begin
Add raw_seqcount_try_begin() to opens a read critical section of the given
seqcount_t if the counter is even. This enables eliding the critical
section entirely if the counter is odd, instead of doing the speculation
knowing it will fail.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Link: https://lkml.kernel.org/r/20241122174416.1367052-1-surenb@google.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions