LoongArch: Remove clock setting during cpu hotplug stage
authorBibo Mao <maobibo@loongson.cn>
Wed, 20 Jul 2022 07:21:51 +0000 (15:21 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 29 Jul 2022 10:22:32 +0000 (18:22 +0800)
commit71610ab1d017e131a9888ef8acd035284fb0e1dd
tree38f705fd1cf80f188a5aad59ce4b8e25cecdb04d
parentf62b7626cb79dfbfe292145b7ebeee4dc63c9499
LoongArch: Remove clock setting during cpu hotplug stage

On physical machine we can save power by disabling clock of hot removed
cpu. However as different platforms require different methods to
configure clocks, the code is platform-specific, and probably belongs to
firmware/pmu or cpu regulator, rather than generic arch/loongarch code.

Also, there is no such register on QEMU virt machine since the
clock/frequency regulation is not emulated.

This patch removes the hard-coded clock register accesses in generic
LoongArch cpu hotplug flow.

Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/smp.c
include/linux/cpuhotplug.h