Title: [5763] trunk/arch/blackfin: SMP patch clean as community reviewer suggested.
Revision
5763
Author
gyang
Date
2008-11-30 22:17:38 -0600 (Sun, 30 Nov 2008)

Log Message

SMP patch clean as community reviewer suggested.

Modified Paths


Diff

Modified: trunk/arch/blackfin/include/asm/smp.h (5762 => 5763)


--- trunk/arch/blackfin/include/asm/smp.h	2008-11-30 03:19:25 UTC (rev 5762)
+++ trunk/arch/blackfin/include/asm/smp.h	2008-12-01 04:17:38 UTC (rev 5763)
@@ -32,6 +32,8 @@
 
 #define raw_smp_processor_id()  blackfin_core_id()
 
+extern char coreb_trampoline_start, coreb_trampoline_end;
+
 struct corelock_slot {
 	int lock;
 };

Modified: trunk/arch/blackfin/mach-bf561/smp.c (5762 => 5763)


--- trunk/arch/blackfin/mach-bf561/smp.c	2008-11-30 03:19:25 UTC (rev 5762)
+++ trunk/arch/blackfin/mach-bf561/smp.c	2008-12-01 04:17:38 UTC (rev 5763)
@@ -27,11 +27,6 @@
 #include <asm/smp.h>
 #include <asm/dma.h>
 
-#define COREB_SRAM_BASE  0xff600000
-#define COREB_SRAM_SIZE  0x4000
-
-extern char coreb_trampoline_start, coreb_trampoline_end;
-
 static DEFINE_SPINLOCK(boot_lock);
 
 static cpumask_t cpu_callin_map;
@@ -54,15 +49,15 @@
 	int len;
 
 	len = &coreb_trampoline_end - &coreb_trampoline_start + 1;
-	BUG_ON(len > COREB_SRAM_SIZE);
+	BUG_ON(len > L1_CODE_LENGTH);
 
-	dma_memcpy((void *)COREB_SRAM_BASE, &coreb_trampoline_start, len);
+	dma_memcpy((void *)COREB_L1_CODE_START, &coreb_trampoline_start, len);
 
 	/* Both cores ought to be present on a bf561! */
 	cpu_set(0, cpu_present_map); /* CoreA */
 	cpu_set(1, cpu_present_map); /* CoreB */
 
-	printk(KERN_INFO "CoreB bootstrap code to SRAM %p via DMA.\n", (void *)COREB_SRAM_BASE);
+	printk(KERN_INFO "CoreB bootstrap code to SRAM %p via DMA.\n", (void *)COREB_L1_CODE_START);
 }
 
 int __init setup_profiling_timer(unsigned int multiplier) /* not supported */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to