s390/nmi: initialize control register 0 earlier
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 17 Aug 2015 06:09:17 +0000 (08:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 19 Aug 2015 08:40:38 +0000 (10:40 +0200)
Change machine_check_init() to an early_initcall(). This makes sure it will
be called before all other cpus are online and therfore saves us a lot of
pointless smp_call_function() calls.
The control register settings will be forwarded to the other cpus when they
will be brought online.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/nmi.c

index cbdd94c8ba189378ff3c8f2dcdc308cd093ef342..0ae6f8e74840d70cacda76f04851d2da1db9f0d3 100644 (file)
@@ -363,4 +363,4 @@ static int __init machine_check_init(void)
        ctl_set_bit(14, 24);    /* enable warning MCH */
        return 0;
 }
-arch_initcall(machine_check_init);
+early_initcall(machine_check_init);