Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc64: Fix bootup regression due to perf init ordering.

Commit 004417a6d468e24399e383645c068b498eed84ad
("perf, arch: Cleanup perf-pmu init vs lockup-detector")
move the perf events init to be an early_initcall.

But this won't work properly unless the dependencies for
this code initialize beforehand.

Fix it by making cpu_type_probe and pcr_arch_init be
an early_initcall as well.

Reported-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

+2 -2
+1 -1
arch/sparc/kernel/cpu.c
··· 375 375 return 0; 376 376 } 377 377 378 - arch_initcall(cpu_type_probe); 378 + early_initcall(cpu_type_probe); 379 379 #endif
+1 -1
arch/sparc/kernel/pcr.c
··· 168 168 return err; 169 169 } 170 170 171 - arch_initcall(pcr_arch_init); 171 + early_initcall(pcr_arch_init);