]> 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)
commite198d1e137045aca0d2b2203934ac0fac68bd20e
tree38f705fd1cf80f188a5aad59ce4b8e25cecdb04d
parent335d039abe28aecb73c80751ab679fa68095b0a3
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