]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/fsl-booke: Remove num_tlbcam_entries
authorTrent Piepho <tpiepho@freescale.com>
Tue, 9 Dec 2008 03:34:56 +0000 (19:34 -0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 7 Jan 2009 21:33:07 +0000 (15:33 -0600)
This is a global variable defined in fsl_booke_mmu.c with a value that gets
initialized in assembly code in head_fsl_booke.S.

It's never used.

If some code ever does want to know the number of entries in TLB1, then
"numcams = mfspr(SPRN_TLB1CFG) & 0xfff", is a whole lot simpler than a
global initialized during kernel boot from assembly.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/kernel/head_fsl_booke.S
arch/powerpc/mm/fsl_booke_mmu.c
arch/powerpc/mm/mmu_decl.h

index 805f28d30e49aee7c2c0b6cf7780844f7fb86379..2f32720a44ae07f8616e9d1c26c4cd7c16145f1c 100644 (file)
@@ -389,10 +389,6 @@ skpinv:    addi    r6,r6,1                         /* Increment */
 #endif
 #endif
 
-       mfspr   r3,SPRN_TLB1CFG
-       andi.   r3,r3,0xfff
-       lis     r4,num_tlbcam_entries@ha
-       stw     r3,num_tlbcam_entries@l(r4)
 /*
  * Decide what sort of machine this is and initialize the MMU.
  */
index c9ee59af1006d8fb7b10bd2e28ba37db9711bdb9..1971e4ee3d6e05b657e15ddcd7e62b7bcda5f5a5 100644 (file)
@@ -56,7 +56,6 @@
 
 extern void loadcam_entry(unsigned int index);
 unsigned int tlbcam_index;
-unsigned int num_tlbcam_entries;
 static unsigned long __cam0, __cam1, __cam2;
 
 #define NUM_TLBCAMS    (16)
index 6f6ee62c2a047746f8eaf94d04c759819e73e2eb..d0bb69dc6278a67daa7dbfa230fb138ffbbfde22 100644 (file)
@@ -99,8 +99,6 @@ extern unsigned int rtas_data, rtas_size;
 struct hash_pte;
 extern struct hash_pte *Hash, *Hash_end;
 extern unsigned long Hash_size, Hash_mask;
-
-extern unsigned int num_tlbcam_entries;
 #endif
 
 extern unsigned long ioremap_bot;