diff options
author | Alexandre Ghiti <[email protected]> | 2024-08-26 18:52:10 +0200 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-09-10 20:28:02 -0700 |
commit | 2840dadf0dde92638d13b97998026c5fcddbdceb (patch) | |
tree | 7e44d4f3b862be492c3841ff83b93d4d03f62219 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1ff95eb2bebda50c4c5406caaf201e0fcb24cc8f (diff) |
drivers: perf: Fix smp_processor_id() use in preemptible code
As reported in [1], the use of smp_processor_id() in
pmu_sbi_device_probe() must be protected by disabling the preemption, so
simple use get_cpu()/put_cpu() instead.
Reported-by: Nam Cao <[email protected]>
Closes: https://lore.kernel.org/linux-riscv/[email protected]/ [1]
Signed-off-by: Alexandre Ghiti <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Tested-by: Nam Cao <[email protected]>
Fixes: a8625217a054 ("drivers/perf: riscv: Implement SBI PMU snapshot function")
Reported-by: Andrea Parri <[email protected]>
Tested-by: Andrea Parri <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions