x86: make "apic" an early_param() on 32-bit
authorRene Herman <rene.herman@keyaccess.nl>
Mon, 11 Aug 2008 15:45:53 +0000 (17:45 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Aug 2008 16:36:04 +0000 (18:36 +0200)
On 32-bit, "apic" is a __setup() param meaning it is parsed rather
late in the game. Make it an early_param() for apic_printk() use
by arch/x86/kernel/mpparse.c.

On 64-bit, it already is an early_param().

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_32.c

index d6c8983583713d747790587861318a5fb58eb342..f432d4833a128d8e46587dc4de69e57cd5686d9d 100644 (file)
@@ -1726,9 +1726,9 @@ static int __init apic_set_verbosity(char *str)
                apic_verbosity = APIC_DEBUG;
        else if (strcmp("verbose", str) == 0)
                apic_verbosity = APIC_VERBOSE;
-       return 1;
+       return 0;
 }
-__setup("apic=", apic_set_verbosity);
+early_param("apic", apic_set_verbosity);
 
 static int __init lapic_insert_resource(void)
 {