[PATCH] [POWERPC] Free a PTE bit on ppc64 with 64K pages

Michael Ellerman michael at ellerman.id.au
Tue Jun 10 14:00:51 EST 2008


On Thu, 2008-05-29 at 15:51 +1000, Benjamin Herrenschmidt wrote:
> This patch frees a PTE bit when using 64K pages on ppc64. This is done
> by getting rid of the separate _PAGE_HASHPTE bit. Instead, we just test
> if any of the 16 sub-page bits is set. For non-combo pages (ie. real
> 64K pages), we set SUB0 and the location encoding in that field.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---
> 
> Please review and make sure I didn't miss something ... 

This doesn't build for CONFIG_PPC_64K_PAGES=n and
CONFIG_PPC_HAS_HASH_64K=y, because the asm is protected by the latter
but the header definitions are protected by the former.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080610/93e509d2/attachment.pgp>


More information about the Linuxppc-dev mailing list