diff options
author | Marco Elver <elver@google.com> | 2021-06-07 14:56:50 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-07-20 13:49:43 -0700 |
commit | 08cac6049412061e571fadadc3e23464dc46d0f2 (patch) | |
tree | 8ca18f66e25e65833db18c6b3425f6d4b8daa677 /kernel/kcsan/permissive.h | |
parent | e675d2533a74acfa95c62e7bb088335866f44fd2 (diff) | |
download | lwn-08cac6049412061e571fadadc3e23464dc46d0f2.tar.gz lwn-08cac6049412061e571fadadc3e23464dc46d0f2.zip |
kcsan: Reduce get_ctx() uses in kcsan_found_watchpoint()
There are a number get_ctx() calls that are close to each other, which
results in poor codegen (repeated preempt_count loads).
Specifically in kcsan_found_watchpoint() (even though it's a slow-path)
it is beneficial to keep the race-window small until the watchpoint has
actually been consumed to avoid missed opportunities to report a race.
Let's clean it up a bit before we add more code in
kcsan_found_watchpoint().
Signed-off-by: Marco Elver <elver@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/kcsan/permissive.h')
0 files changed, 0 insertions, 0 deletions