summaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2012-10-09 01:34:20 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-09 09:23:04 +0200
commit56a70b8c6acc73f5d9ec383d840909dd9e63c865 (patch)
tree43f16f20e27660c709cda733339127af2152eca6 /arch/sparc/mm
parentsparc64: Only support 4MB huge pages and 8KB base pages. (diff)
downloadlinux-56a70b8c6acc73f5d9ec383d840909dd9e63c865.tar.xz
linux-56a70b8c6acc73f5d9ec383d840909dd9e63c865.zip
sparc64: Halve the size of PTE tables
The reason we want to do this is to facilitate transparent huge page support. Right now PMD's cover 8MB of address space, and our huge page size is 4MB. The current transparent hugepage support is not able to handle HPAGE_SIZE != PMD_SIZE. So make PTE tables be sized to half of a page instead of a full page. We can still map properly the whole supported virtual address range which on sparc64 requires 44 bits. Add a compile time CPP test which ensures that this requirement is always met. There is a minor inefficiency added by this change. We only use half of the page for PTE tables. It's not trivial to use only half of the page yet still get all of the pgtable_page_{ctor,dtor}() stuff working properly. It is doable, and that will come in a subsequent change. Signed-off-by: David S. Miller <davem@davemloft.net> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc/mm')
0 files changed, 0 insertions, 0 deletions