aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mach-voyager/voyager_smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mach-voyager/voyager_smp.c')
-rw-r--r--arch/x86/mach-voyager/voyager_smp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/mach-voyager/voyager_smp.c b/arch/x86/mach-voyager/voyager_smp.c
index 3cc8eb2f36a9..20b7ce697ee8 100644
--- a/arch/x86/mach-voyager/voyager_smp.c
+++ b/arch/x86/mach-voyager/voyager_smp.c
@@ -210,7 +210,7 @@ static int cpucount = 0;
210/* steal a page from the bottom of memory for the trampoline and 210/* steal a page from the bottom of memory for the trampoline and
211 * squirrel its address away here. This will be in kernel virtual 211 * squirrel its address away here. This will be in kernel virtual
212 * space */ 212 * space */
213static __u32 trampoline_base; 213unsigned char *trampoline_base;
214 214
215/* The per cpu profile stuff - used in smp_local_timer_interrupt */ 215/* The per cpu profile stuff - used in smp_local_timer_interrupt */
216static DEFINE_PER_CPU(int, prof_multiplier) = 1; 216static DEFINE_PER_CPU(int, prof_multiplier) = 1;
@@ -435,9 +435,9 @@ static __u32 __init setup_trampoline(void)
435 extern const __u8 trampoline_end[]; 435 extern const __u8 trampoline_end[];
436 extern const __u8 trampoline_data[]; 436 extern const __u8 trampoline_data[];
437 437
438 memcpy((__u8 *) trampoline_base, trampoline_data, 438 memcpy(trampoline_base, trampoline_data,
439 trampoline_end - trampoline_data); 439 trampoline_end - trampoline_data);
440 return virt_to_phys((__u8 *) trampoline_base); 440 return virt_to_phys(trampoline_base);
441} 441}
442 442
443/* Routine initially called when a non-boot CPU is brought online */ 443/* Routine initially called when a non-boot CPU is brought online */
@@ -1166,7 +1166,7 @@ void flush_tlb_all(void)
1166 * is sorted out */ 1166 * is sorted out */
1167void __init smp_alloc_memory(void) 1167void __init smp_alloc_memory(void)
1168{ 1168{
1169 trampoline_base = (__u32) alloc_bootmem_low_pages(PAGE_SIZE); 1169 trampoline_base = alloc_bootmem_low_pages(PAGE_SIZE);
1170 if (__pa(trampoline_base) >= 0x93000) 1170 if (__pa(trampoline_base) >= 0x93000)
1171 BUG(); 1171 BUG();
1172} 1172}