]> www.infradead.org Git - users/willy/pagecache.git/commit
LoongArch: Remove the deprecated notifier hook mechanism
authorYuli Wang <wangyuli@uniontech.com>
Thu, 13 Feb 2025 04:02:40 +0000 (12:02 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 13 Feb 2025 04:02:40 +0000 (12:02 +0800)
commit6b72cd9ef062702390fc96c469beea1729a5dffe
treeb9a962af4824a65ac992ace22722753161ed4b27
parent03a99d16e64fad41c8d39700bef9b0ac9c4e148b
LoongArch: Remove the deprecated notifier hook mechanism

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 addition, the seq_file forward declaration needs to be moved to its
proper place, as only the show_ipi_list() function in smp.c requires it.

Co-developed-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/cpu-info.h
arch/loongarch/include/asm/smp.h
arch/loongarch/kernel/proc.c