From: Aneesh Kumar K.V Date: Sun, 28 Apr 2013 09:37:29 +0000 (+0000) Subject: powerpc: New hugepage directory format X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~66^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf9427b85e90bb1ff90e2397ff419691d983c68b;p=pandora-kernel.git powerpc: New hugepage directory format Change the hugepage directory format so that we can have leaf ptes directly at page directory avoiding the allocation of hugepage directory. With the new table format we have 3 cases for pgds and pmds: (1) invalid (all zeroes) (2) pointer to next table, as normal; bottom 6 bits == 0 (4) hugepd pointer, bottom two bits == 00, next 4 bits indicate size of table Instead of storing shift value in hugepd pointer we use mmu_psize_def index so that we can fit all the supported hugepage size in 4 bits Signed-off-by: Aneesh Kumar K.V Acked-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed