[PATCH] x86_64: should use array directly for early_ptr

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Mike Travis <travis@...>, Christoph Lameter <clameter@...>, LKML <linux-kernel@...>
Date: Wednesday, January 23, 2008 - 5:27 am

[PATCH] x86_64: should use array directly for early_ptr

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

--- a/arch/x86/kernel/setup_64.c	2008-01-23 01:21:06.000000000 -0800
+++ b/arch/x86/kernel/setup_64.c	2008-01-23 01:21:24.000000000 -0800
@@ -344,10 +344,10 @@
 
 #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
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86_64: should use array directly for early_ptr, Yinghai Lu, (Wed Jan 23, 5:27 am)