[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAhV-H4aap22B_jaRVxJQDGThg-6HQQ3oC4ZeaT=v_4+5R5zqw@mail.gmail.com>
Date: Mon, 10 Feb 2025 21:05:06 +0800
From: Huacai Chen <chenhuacai@...nel.org>
To: WangYuli <wangyuli@...ontech.com>
Cc: kernel@...0n.name, guanwentao@...ontech.com, jiaxun.yang@...goat.com,
loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
chenlinxuan@...ontech.com
Subject: Re: [PATCH v2 0/2] LoongArch: Remove the deprecated notifier hook mechanism
Series applied, thanks.
Huacai
On Sun, Feb 9, 2025 at 1:03 PM WangYuli <wangyuli@...ontech.com> 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
>
Powered by blists - more mailing lists