]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc: Get rid of bitfields in ppc_bat struct
authorBecky Bruce <becky.bruce@freescale.com>
Fri, 13 Jun 2008 23:41:43 +0000 (09:41 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 30 Jun 2008 12:31:05 +0000 (22:31 +1000)
commit316a405841cc03723d401b098d188aa4e3daa69b
tree476be4fad16c690d1650890757aacc3095e85129
parent7c5c4325d2d911fe54db3bc14149bfa558ae0acb
powerpc: Get rid of bitfields in ppc_bat struct

While working on the 36-bit physical support, I noticed that there
was exactly one line of code that actually referenced the bitfields.
So I got rid of them and redefined ppc_bat as a struct of 2 u32's:
batu and batl.  I also got rid of the previous union that held the
bitfield structs and a word representation of the batu/l values.

This seems like a nicer solution than adding in a bunch of
new bitfields to support extended bat addressing that would never
get used, and just leaving the struct as-is would have been
incomplete in the face of large physical addressing.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/ppc_mmu_32.c
include/asm-powerpc/mmu-hash32.h