Re: [PATCH] cpufreq: loongson3: Use raw_smp_processor_id() in do_service_request()
From: Viresh Kumar
Date: Tue Sep 03 2024 - 05:02:05 EST
On 28-08-24, 14:24, Huacai Chen wrote:
> Use raw_smp_processor_id() instead of plain smp_processor_id() in
> do_service_request(), otherwise we may get some errors with the driver
> enabled:
>
> BUG: using smp_processor_id() in preemptible [00000000] code: (udev-worker)/208
> caller is loongson3_cpufreq_probe+0x5c/0x250 [loongson3_cpufreq]
>
> Reported-by: Xi Ruoyao <xry111@xxxxxxxxxxx>
> Tested-by: Binbin Zhou <zhoubinbin@xxxxxxxxxxx>
> Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
> ---
> drivers/cpufreq/loongson3_cpufreq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied. Thanks.
--
viresh