x86: should use array directly for early_ptr
authorYinghai Lu <Yinghai.Lu@Sun.COM>
Wed, 30 Jan 2008 12:33:33 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:33 +0000 (13:33 +0100)
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/setup_64.c

index fe47807cac008b6dfbad454da7a78f84660c2ef7..0d20ed7fb0974cccfdad183ad76b6f6ccf26bc1a 100644 (file)
@@ -333,10 +333,10 @@ void __init setup_arch(char **cmdline_p)
 
 #ifdef CONFIG_SMP
        /* setup to use the early static init tables during kernel startup */
-       x86_cpu_to_apicid_early_ptr = (void *)&x86_cpu_to_apicid_init;
-       x86_bios_cpu_apicid_early_ptr = (void *)&x86_bios_cpu_apicid_init;
+       x86_cpu_to_apicid_early_ptr = (void *)x86_cpu_to_apicid_init;
+       x86_bios_cpu_apicid_early_ptr = (void *)x86_bios_cpu_apicid_init;
 #ifdef CONFIG_NUMA
-       x86_cpu_to_node_map_early_ptr = (void *)&x86_cpu_to_node_map_init;
+       x86_cpu_to_node_map_early_ptr = (void *)x86_cpu_to_node_map_init;
 #endif
 #endif