[PATCH -fixes] drivers: perf: Fix smp_processor_id() use in preemptible code
Andrea Parri
parri.andrea at gmail.com
Mon Aug 26 12:35:59 PDT 2024
On Mon, Aug 26, 2024 at 06:52:10PM +0200, Alexandre Ghiti wrote:
> 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.
simply
> Reported-by: Nam Cao <namcao at linutronix.de>
Reported-by: Andrea Parri <parri.andrea at gmail.com>
> Closes: https://lore.kernel.org/linux-riscv/20240820074925.ReMKUPP3@linutronix.de/ [1]
> Signed-off-by: Alexandre Ghiti <alexghiti at rivosinc.com>
Tested-by: Andrea Parri <parri.andrea at gmail.com>
Andrea
More information about the linux-riscv
mailing list