Re: [PATCH v1 2/4] LoongArch: Handle percpu handler address in bt_address()
From: Huacai Chen
Date: Tue Jan 20 2026 - 08:01:41 EST
On Tue, Jan 20, 2026 at 8:57 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
>
> On 2026/1/20 下午8:04, Huacai Chen wrote:
> > Hi, Tiezhu,
> >
> > On Tue, Jan 20, 2026 at 5:23 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
> >>
> >> After commit 4cd641a79e69 ("LoongArch: Remove unnecessary checks for
> >> ORC unwinder"), the system can not boot normally under some configs,
> >> there are many error messages "cannot find unwind pc at".
>
> ...
>
> >> +#if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT)
> >> + for (int cpu = 1; cpu < num_possible_cpus(); cpu++) {
> > Use nr_cpu_ids instead of num_possible_cpus() can improve performance a little.
> >
> >> + int vec_sz = sizeof(exception_handlers);
> >> +
> > It is better to add "if (!pcpu_handlers[cpu]) continue" here.
>
> If so, it can use for_each_possible_cpu(cpu) directly?
It can, but I remember you want to skip CPU 0?
Huacai
>
> Thanks,
> Tiezhu
>