summaryrefslogtreecommitdiffstats
path: root/mm/ksm.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2013-06-06 02:14:05 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-06-20 08:55:08 +0200
commitfde52796d487b675cde55427e3347ff3e59f9a7f (patch)
tree3dd0b69084ab6ecc71caa6a110c353597a9df260 /mm/ksm.c
parentmm/THP: withdraw the pgtable after pmdp related operations (diff)
downloadlinux-fde52796d487b675cde55427e3347ff3e59f9a7f.tar.xz
linux-fde52796d487b675cde55427e3347ff3e59f9a7f.zip
mm/THP: don't use HPAGE_SHIFT in transparent hugepage code
For architectures like powerpc that support multiple explicit hugepage sizes, HPAGE_SHIFT indicate the default explicit hugepage shift. For THP to work the hugepage size should be same as PMD_SIZE. So use PMD_SHIFT directly. So move the define outside CONFIG_TRANSPARENT_HUGEPAGE #ifdef because we want to use these defines in generic code with if (pmd_trans_huge()) conditional. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: David Gibson <david@gibson.dropbear.id.au> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'mm/ksm.c')
0 files changed, 0 insertions, 0 deletions