Re: [PATCH v2 0/2] LoongArch: Remove the deprecated notifier hook mechanism

From: Huacai Chen
Date: Mon Feb 10 2025 - 08:05:40 EST


Series applied, thanks.

Huacai

On Sun, Feb 9, 2025 at 1:03 PM WangYuli <wangyuli@xxxxxxxxxxxxx> wrote:
>
> The notifier hook mechanism in proc and cpuinfo is actually unnecessary
> for LoongArch because it's not used anywhere.
>
> It was originally added to the MIPS code in commit d6d3c9afaab4 ("MIPS:
> MT: proc: Add support for printing VPE and TC ids"), and LoongArch
> then inherited it.
>
> But as the kernel code stands now, this notifier hook mechanism doesn't
> really make sense for either LoongArch or MIPS.
>
> In the process, we identified one instance where a hardcoded print message
> could be changed to utilize the str_yes_no() helper function.
>
> Furthermore, the declaration of seq_file in cpuinfo.h should also be
> removed along with the deprecated notifier hook mechanism.
>
> However, it needs to be added back in a different location to ensure
> the code compiles and functions correctly.
>
> WangYuli (2):
> LoongArch: kernel: proc: Use str_yes_no() helper function
> LoongArch: Remove the deprecated notifier hook mechanism
>
> arch/loongarch/include/asm/cpu-info.h | 21 -------------------
> arch/loongarch/include/asm/smp.h | 1 +
> arch/loongarch/kernel/proc.c | 29 +++------------------------
> 3 files changed, 4 insertions(+), 47 deletions(-)
> ---
> Changelog:
> *v1->v2: Combine the patch2 and patch3 from v1.
>
> --
> 2.47.2
>