]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sparc64: Fix bootup regression due to perf init ordering.
authorDavid S. Miller <davem@davemloft.net>
Sun, 9 Jan 2011 23:36:46 +0000 (15:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jan 2011 23:36:46 +0000 (15:36 -0800)
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>
arch/sparc/kernel/cpu.c
arch/sparc/kernel/pcr.c

index e447938d39cf1f48cfd7a6707b66739e9208cb54..0dc714fa23d899d690a004610dad1d9ac8254c6b 100644 (file)
@@ -375,5 +375,5 @@ static int __init cpu_type_probe(void)
        return 0;
 }
 
-arch_initcall(cpu_type_probe);
+early_initcall(cpu_type_probe);
 #endif
index b87873c0e8ea5f72be8ffe784e1035911b05a68c..ae96cf52a955c71b74395f0e5f06b10f64186e63 100644 (file)
@@ -168,4 +168,4 @@ out_unregister:
        return err;
 }
 
-arch_initcall(pcr_arch_init);
+early_initcall(pcr_arch_init);