aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2009-05-25 00:27:22 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-12 06:11:49 -0400
commitd1800fe0e50ed22673cd895f2b0a7c2b79d3010a (patch)
tree3f37fd9b1a49cfe3fc8e294c026c69804547715e
parentc8d5ea8ccb1ce586131c6c549899cb5073222da0 (diff)
Blackfin: drop unused reserve_pda() function
The Per-processor Data Area isn't actually reserved by this function, and all it ended up doing was issuing a printk(), so punt it. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--arch/blackfin/include/asm/pda.h2
-rw-r--r--arch/blackfin/mach-common/smp.c3
-rw-r--r--arch/blackfin/mm/init.c10
3 files changed, 0 insertions, 15 deletions
diff --git a/arch/blackfin/include/asm/pda.h b/arch/blackfin/include/asm/pda.h
index a67142740df0..b42555c1431c 100644
--- a/arch/blackfin/include/asm/pda.h
+++ b/arch/blackfin/include/asm/pda.h
@@ -64,8 +64,6 @@ struct blackfin_pda { /* Per-processor Data Area */
64 64
65extern struct blackfin_pda cpu_pda[]; 65extern struct blackfin_pda cpu_pda[];
66 66
67void reserve_pda(void);
68
69#endif /* __ASSEMBLY__ */ 67#endif /* __ASSEMBLY__ */
70 68
71#endif /* _ASM_BLACKFIN_PDA_H */ 69#endif /* _ASM_BLACKFIN_PDA_H */
diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c
index b6695957b065..3b8ebaee77f2 100644
--- a/arch/blackfin/mach-common/smp.c
+++ b/arch/blackfin/mach-common/smp.c
@@ -369,9 +369,6 @@ static void __cpuinit setup_secondary(unsigned int cpu)
369 bfin_write_ILAT(ilat); 369 bfin_write_ILAT(ilat);
370 CSYNC(); 370 CSYNC();
371 371
372 /* Reserve the PDA space for the secondary CPU. */
373 reserve_pda();
374
375 /* Enable interrupt levels IVG7-15. IARs have been already 372 /* Enable interrupt levels IVG7-15. IARs have been already
376 * programmed by the boot CPU. */ 373 * programmed by the boot CPU. */
377 bfin_irq_flags |= IMASK_IVG15 | 374 bfin_irq_flags |= IMASK_IVG15 |
diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c
index 00543c813f4a..9a62b300a396 100644
--- a/arch/blackfin/mm/init.c
+++ b/arch/blackfin/mm/init.c
@@ -134,12 +134,6 @@ asmlinkage void __init init_pda(void)
134#endif 134#endif
135} 135}
136 136
137void __cpuinit reserve_pda(void)
138{
139 printk(KERN_INFO "PDA for CPU%u reserved at %p\n", smp_processor_id(),
140 &cpu_pda[smp_processor_id()]);
141}
142
143void __init mem_init(void) 137void __init mem_init(void)
144{ 138{
145 unsigned int codek = 0, datak = 0, initk = 0; 139 unsigned int codek = 0, datak = 0, initk = 0;
@@ -186,10 +180,6 @@ static int __init sram_init(void)
186 /* Initialize the blackfin L1 Memory. */ 180 /* Initialize the blackfin L1 Memory. */
187 bfin_sram_init(); 181 bfin_sram_init();
188 182
189 /* Reserve the PDA space for the boot CPU right after we
190 * initialized the scratch memory allocator.
191 */
192 reserve_pda();
193 return 0; 183 return 0;
194} 184}
195pure_initcall(sram_init); 185pure_initcall(sram_init);