diff options
author | Marco Elver <elver@google.com> | 2020-02-25 15:32:58 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-03-25 09:56:00 -0700 |
commit | 44656d3dc4f0dc20010d054f27397a4a1469fabf (patch) | |
tree | 3cc0c8938304bb29992524788e001270d1afb4ca /tools/perf/scripts/python/sched-migration.py | |
parent | 2402d0eae589a31ee7b1774cb220d84d0f5605b4 (diff) |
kcsan: Add current->state to implicitly atomic accesses
Add volatile current->state to list of implicitly atomic accesses. This
is in preparation to eventually enable KCSAN on kernel/sched (which
currently still has KCSAN_SANITIZE := n).
Since accesses that match the special check in atomic.h are rare, it
makes more sense to move this check to the slow-path, avoiding the
additional compare in the fast-path. With the microbenchmark, a speedup
of ~6% is measured.
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions