Re: [PATCH 6/6] powerpc: support multiple huge page sizes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Piggin <npiggin@...>
Cc: linuxppc-dev <linuxppc-dev@...>, <linux-kernel@...>, Linux Memory Management List <linux-mm@...>, Andi Kleen <andi@...>, Paul Mackerras <paulus@...>, Nishanth Aravamudan <nacc@...>
Date: Tuesday, June 24, 2008 - 1:17 pm

Nick Piggin wrote:
I would love to be able to simplify it.
Something like the following?

+	addr &= ~(sz - 1);

Is that faster then just pulling it out of hstate?
I still need to locate hstate, but I guess if the mask is calculated
this way the locate could be pushed further into the function so that it
isn't done if it isn't always needed.
Thank you for looking at the code.

Jon


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 6/6] powerpc: support multiple huge page sizes, Jon Tollefson, (Tue May 13, 1:25 pm)
Re: [PATCH 6/6] powerpc: support multiple huge page sizes, Jon Tollefson, (Tue Jun 24, 1:17 pm)
[PATCH 5/6 v2] check for overflow, Jon Tollefson, (Tue May 13, 1:23 pm)
[PATCH 4/6 v2] powerpc: define page support for 16G pages, Jon Tollefson, (Tue May 13, 1:23 pm)