kernel-aes67/arch/loongarch
Bibo Mao f3334ebb8a LoongArch: Lately init pmu after smp is online
There is an smp function call named reset_counters() to init PMU
registers of every CPU in PMU initialization state. It requires that all
CPUs are online. However there is an early_initcall() wrapper for the
PMU init funciton init_hw_perf_events(), so that pmu init funciton is
called in do_pre_smp_initcalls() which before function smp_init().
Function reset_counters() cannot work on other CPUs since they haven't
boot up still.

Here replace the wrapper early_initcall() with pure_initcall(), so that
the PMU init function is called after every cpu is online.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2024-04-25 22:17:52 +08:00
..
boot LoongArch: Update dts for Loongson-2K2000 to support GMAC/GNET 2024-04-10 21:08:51 +08:00
configs
crypto LoongArch/crypto: Clean up useless assignment operations 2024-03-19 15:50:34 +08:00
include LoongArch: Fix callchain parse error with kernel tracepoint events 2024-04-24 12:36:07 +08:00
kernel LoongArch: Lately init pmu after smp is online 2024-04-25 22:17:52 +08:00
kvm LoongArch changes for v6.9 2024-03-22 10:22:45 -07:00
lib
mm LoongArch: Fix access error when read fault on a write-only VMA 2024-04-24 12:36:07 +08:00
net
pci
power
vdso
Kbuild
Kconfig LoongArch: Fix Kconfig item and left code related to CRASH_CORE 2024-04-24 12:36:07 +08:00
Kconfig.debug
Makefile LoongArch changes for v6.9 2024-03-22 10:22:45 -07:00