diff options
author | Mark Rutland <[email protected]> | 2022-09-12 17:22:03 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2022-09-16 17:15:02 +0100 |
commit | 92b4b5619f12770d455ae639ed4e773bdf01aff6 (patch) | |
tree | 9d4620852cf5a0720f3ccd184cd40cb6202a43a7 /net/lapb/lapb_timer.c | |
parent | b90cb1053190353cc30f0fef0ef1f378ccc063c5 (diff) |
arm64: cpufeature: make cpus_have_cap() noinstr-safe
Currently it isn't safe to use cpus_have_cap() from noinstr code as
test_bit() is explicitly instrumented, and were cpus_have_cap() placed
out-of-line, cpus_have_cap() itself could be instrumented.
Make cpus_have_cap() noinstr safe by marking it __always_inline and
using arch_test_bit().
Aside from the prevention of instrumentation, there should be no
functional change as a result of this patch.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: James Morse <[email protected]>
Cc: Joey Gouly <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Will Deacon <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions