]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93c0f3565aa2bdc31fb6192618c16e81af460d49
tree38f705fd1cf80f188a5aad59ce4b8e25cecdb04d
parent0ecf033093cae99fbaee0031e68e2743835e4c90
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