summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2021-07-21 18:58:13 +0300
committerPeter Zijlstra <peterz@infradead.org>2021-08-04 16:16:47 +0300
commit9248e52fec9536590852844b0634b5d20483c1ab (patch)
treec1e263dff46d665f806133950674a3d5d90587d3 /fs
parentcf3ee3c8c29dc349b2cf52e5e72e8cb805ff5e57 (diff)
downloadlinux-9248e52fec9536590852844b0634b5d20483c1ab.tar.xz
locking/atomic: simplify non-atomic wrappers
Since the non-atomic arch_*() bitops use plain accesses, they are implicitly instrumnted by the compiler, and we work around this in the instrumented wrappers to avoid double instrumentation. It's simpler to avoid the wrappers entirely, and use the preprocessor to alias the arch_*() bitops to their regular versions, removing the need for checks in the instrumented wrappers. Suggested-by: Marco Elver <elver@google.com> Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Marco Elver <elver@google.com> Link: https://lore.kernel.org/r/20210721155813.17082-1-mark.rutland@arm.com
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions