diff options
author | Marc Zyngier <[email protected]> | 2024-02-15 01:49:54 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2024-02-15 01:58:03 +0000 |
commit | 9aa030cee1c45d6e962f6bf22ba63d4aff2b1644 (patch) | |
tree | c9420e445d9556751c81cb8f80fd085301dcec7e /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 3673d01a2f555603cbf756874c7388b76bfbc967 (diff) |
arm64: cpufeatures: Fix FEAT_NV check when checking for FEAT_NV1
Using this_cpu_has_cap() has the potential to go wrong when
used system-wide on a preemptible kernel. Instead, use the
__system_matches_cap() helper when checking for FEAT_NV in the
FEAT_NV1 probing helper.
Fixes: 3673d01a2f55 ("arm64: cpufeatures: Only check for NV1 if NV is present")
Reported-by: Marek Szyprowski <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Reviewed-by: Suzuki K Poulose <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Link: https://lore.kernel.org/kvmarm/[email protected]/
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions