]> nv-tegra.nvidia Code Review - linux-3.10.git/commit
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)
commit6fd8be4bf72879b3039654388e985cabf8449af5
tree4a2baf9007c179f1422b2c09b08d791203210f9c
parent19f5465e823858a2f0b0e9a92e52816ba3ee70bb
powerpc/fsl-booke: Remove num_tlbcam_entries

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