[PATCH 2/5] powerpc: booke: Remove num_tlbcam_entries

Kumar Gala galak at kernel.crashing.org
Thu Jan 8 03:04:58 EST 2009


On Dec 8, 2008, at 9:34 PM, Trent Piepho wrote:

> 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 at freescale.com>
> ---
> arch/powerpc/kernel/head_fsl_booke.S |    4 ----
> arch/powerpc/mm/fsl_booke_mmu.c      |    1 -
> arch/powerpc/mm/mmu_decl.h           |    2 --
> 3 files changed, 0 insertions(+), 7 deletions(-)

applied to next

- k



More information about the Linuxppc-dev mailing list