Blackfin: drop unused reserve_pda() function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 2:00 pm

Gitweb:     http://git.kernel.org/linus/d1800fe0e50ed22673cd895f2b0a7c2b79d3010a
Commit:     d1800fe0e50ed22673cd895f2b0a7c2b79d3010a
Parent:     c8d5ea8ccb1ce586131c6c549899cb5073222da0
Author:     Graf Yang <graf.yang@analog.com>
AuthorDate: Mon May 25 04:27:22 2009 +0000
Committer:  Mike Frysinger <vapier@gentoo.org>
CommitDate: Fri Jun 12 06:11:49 2009 -0400

    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>
---
 arch/blackfin/include/asm/pda.h |    2 --
 arch/blackfin/mach-common/smp.c |    3 ---
 arch/blackfin/mm/init.c         |   10 ----------
 3 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/arch/blackfin/include/asm/pda.h b/arch/blackfin/include/asm/pda.h
index a671427..b42555c 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 */
 
 extern struct blackfin_pda cpu_pda[];
 
-void reserve_pda(void);
-
 #endif	/* __ASSEMBLY__ */
 
 #endif /* _ASM_BLACKFIN_PDA_H */
diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c
index b669595..3b8ebae 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)
 	bfin_write_ILAT(ilat);
 	CSYNC();
 
-	/* Reserve the PDA space for the secondary CPU. */
-	reserve_pda();
-
 	/* Enable interrupt levels IVG7-15. IARs have been already
 	 * programmed by the boot CPU.  */
 	bfin_irq_flags |= IMASK_IVG15 |
diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c
index 00543c8..9a62b30 100644
--- a/arch/blackfin/mm/init.c
+++ b/arch/blackfin/mm/init.c
@@ -134,12 +134,6 @@ asmlinkage void __init init_pda(void)
 #endif
 }
 
-void __cpuinit reserve_pda(void)
-{
-	printk(KERN_INFO "PDA for CPU%u reserved at %p\n", smp_processor_id(),
-					&cpu_pda[smp_processor_id()]);
-}
-
 void __init mem_init(void)
 {
 	unsigned int codek = 0, datak = 0, initk = 0;
@@ -186,10 +180,6 @@ static int __init sram_init(void)
 	/* Initialize the blackfin L1 Memory. */
 	bfin_sram_init();
 
-	/* Reserve the PDA space for the boot CPU right after we
-	 * initialized the scratch memory allocator.
-	 */
-	reserve_pda();
 	return 0;
 }
 pure_initcall(sram_init);
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Blackfin: drop unused reserve_pda() function, Linux Kernel Mailing ..., (Fri Jun 12, 2:00 pm)