summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorBen Horgan <ben.horgan@arm.com>2026-03-06 18:27:17 +0000
committerWill Deacon <will@kernel.org>2026-03-13 14:17:30 +0000
commitc1376f1ff3f016a4b84e8030ed69df82e018d231 (patch)
tree3efa0adf44b12ddf12f5aaf490f9328b3de96568 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux-stable.git
parent4ad79c874e53ebb7fe3b8ae7ac6c858a2121f415 (diff)
arm_mpam: Disable preemption when making accesses to fake MSC in kunit test
Accesses to MSC must be made from a cpu that is affine to that MSC and the driver checks this in __mpam_write_reg() using smp_processor_id(). A fake in-memory MSC is used for testing. When using that, it doesn't matter which cpu we access it from but calling smp_processor_id() from a preemptible context gives warnings when running with CONFIG_DEBUG_PREEMPT. Add a test helper that wraps mpam_reset_msc_bitmap() with preemption disabled to ensure all (fake) MSC accesses are made with preemption disabled. Signed-off-by: Ben Horgan <ben.horgan@arm.com> Reviewed-by: James Morse <james.morse@arm.com> Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions