Re: [PATCH v3 0/3] Move thread_info into task_struct for LoongArch

From: Huacai Chen

Date: Sat Jun 13 2026 - 22:51:32 EST


Hi, Tiezhu,

I have queued this series for 7.2, does the below series depend on this one?

https://lore.kernel.org/loongarch/20260521125636.26744-1-yangtiezhu@xxxxxxxxxxx/T/#t
https://lore.kernel.org/loongarch/20260428080051.20938-1-yangtiezhu@xxxxxxxxxxx/T/#t

Huacai

On Fri, Jun 12, 2026 at 9:16 AM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:
>
> Based on 7.1-rc7, tested with stress-ng, successfully passed
> the 10-hours stress testing suite, and UnixBench benchmarking
> shows a steady performance lift across all core counts.
>
> Thanks Huacai, Wang Rui, sashiko-bot and bot+bpf-ci for your
> review comments and valuable suggestions.
>
> Tiezhu Yang (3):
> LoongArch: Implement CONFIG_THREAD_INFO_IN_TASK
> LoongArch: BPF: Inline bpf_get_current_task{_btf}() helpers
> LoongArch: BPF: Inline bpf_get_smp_processor_id() helper
>
> .../core/thread-info-in-task/arch-support.txt | 2 +-
> arch/loongarch/Kconfig | 1 +
> arch/loongarch/include/asm/current.h | 31 +++++++++++++++++++
> arch/loongarch/include/asm/smp.h | 3 +-
> arch/loongarch/include/asm/stackframe.h | 9 ++++--
> arch/loongarch/include/asm/switch_to.h | 6 ++--
> arch/loongarch/include/asm/thread_info.h | 10 ------
> arch/loongarch/kernel/asm-offsets.c | 6 ++--
> arch/loongarch/kernel/entry.S | 7 +++--
> arch/loongarch/kernel/head.S | 18 ++++++-----
> arch/loongarch/kernel/process.c | 2 ++
> arch/loongarch/kernel/relocate.c | 2 +-
> arch/loongarch/kernel/setup.c | 1 +
> arch/loongarch/kernel/smp.c | 6 ++--
> arch/loongarch/kernel/switch.S | 14 +++++----
> arch/loongarch/kernel/traps.c | 8 +++++
> arch/loongarch/net/bpf_jit.c | 26 ++++++++++++++++
> 17 files changed, 114 insertions(+), 38 deletions(-)
> create mode 100644 arch/loongarch/include/asm/current.h
>
> --
> 2.42.0
>
>