]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
powerpc/fsl-booke: Remove code duplication in lowmem mapping
authorTrent Piepho <tpiepho@freescale.com>
Tue, 9 Dec 2008 03:34:57 +0000 (19:34 -0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 29 Jan 2009 00:16:51 +0000 (18:16 -0600)
commitf88747e7f68866f2f82cef1363c5b8e7aa13b0a3
tree7adcbb1a619477de38eb12fcea2556dc609a0854
parent105c31df6fc5a424b480321763b5598cf3817821
powerpc/fsl-booke: Remove code duplication in lowmem mapping

The code to map lowmem uses three CAM aka TLB[1] entries to cover it.  The
size of each is stored in three globals named __cam0, __cam1, and __cam2.
All the code that uses them is duplicated three times for each of the three
variables.

We have these things called arrays and loops....

Once converted to use an array, it will be easier to make the number of
CAMs configurable.

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