]> git.ipfire.org Git - people/ms/u-boot.git/commit
mpc85xx: tlb.c cleanups
authorBecky Bruce <beckyb@kernel.crashing.org>
Thu, 17 Jun 2010 16:37:21 +0000 (11:37 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 16 Jul 2010 15:55:09 +0000 (10:55 -0500)
commit4e63df300f05df2eb3ee87deed043a718ffc6a4e
treeef7238884c0159a6ba6b0f2888ec25d1ea6a5183
parentf51cdaf19141151ce2b40d562a468605340f2315
mpc85xx: tlb.c cleanups

Extract the operation to read a tlb into a function - we will need
this later to print out the tlbs, and there's no point in duplicating
the code.  Create a TSIZE_TO_BYTES macro to deal with the conversion
from the MAS field to an actual size instead of duplicating this in code.
There are a few misc other minor cleanups.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/tlb.c
arch/powerpc/include/asm/mmu.h