Commit 5edddaab authored by David S. Miller's avatar David S. Miller

sparc64: Fix bootup regression due to perf init ordering.

Commit 004417a6
("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: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0c21e3aa
...@@ -375,5 +375,5 @@ static int __init cpu_type_probe(void) ...@@ -375,5 +375,5 @@ static int __init cpu_type_probe(void)
return 0; return 0;
} }
arch_initcall(cpu_type_probe); early_initcall(cpu_type_probe);
#endif #endif
...@@ -168,4 +168,4 @@ int __init pcr_arch_init(void) ...@@ -168,4 +168,4 @@ int __init pcr_arch_init(void)
return err; return err;
} }
arch_initcall(pcr_arch_init); early_initcall(pcr_arch_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment