kernel-aes67/arch/loongarch/kernel
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
..
.gitignore
Makefile LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
access-helper.h
acpi.c LoongArch: Change acpi_core_pic[NR_CPUS] to acpi_core_pic[MAX_CORE_PIC] 2024-02-06 12:32:05 +08:00
alternative.c
asm-offsets.c
cacheinfo.c
cpu-probe.c
crash_dump.c
dma.c
efi-header.S
efi.c
elf.c
entry.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
env.c
fpu.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
ftrace.c
ftrace_dyn.c
genex.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
head.S
hw_breakpoint.c
idle.c
image-vars.h
inst.c
io.c
irq.c
jump_label.c
kfpu.c
kgdb.c
kprobes.c
lbt.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
machine_kexec.c
mcount.S
mcount_dyn.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
mem.c
module-sections.c
module.c LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
numa.c
perf_event.c LoongArch: Lately init pmu after smp is online 2024-04-25 22:17:52 +08:00
perf_regs.c
proc.c
process.c
ptrace.c
relocate.c
relocate_kernel.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
reset.c
rethook.c
rethook.h
rethook_trampoline.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
setup.c LoongArch changes for v6.9 2024-03-22 10:22:45 -07:00
signal.c
smp.c LoongArch: Update cpu_sibling_map when disabling nonboot CPUs 2024-02-23 14:36:31 +08:00
stacktrace.c LoongArch: Add kernel livepatching support 2024-03-11 22:23:47 +08:00
switch.S
syscall.c
sysrq.c
time.c
topology.c
traps.c LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
unaligned.c
unwind.c
unwind_guess.c
unwind_orc.c LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
unwind_prologue.c
uprobes.c
vdso.c LoongArch: vdso: Use generic union vdso_data_store 2024-02-20 20:56:00 +01:00
vmlinux.lds.S LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00