]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Some arch may want to use HPAGE_PMD related values as variables
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 1 Mar 2016 04:15:14 +0000 (09:45 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Mar 2016 10:18:29 +0000 (21:18 +1100)
commit34de03023de3acc891c8c9cfa5f1c2a4ea6d59f0
treeba2078e9b2def032e9722112e5ab9d82b5ac0de3
parentf7e555fe3f329167df06acd56b70c9c46b338e41
mm: Some arch may want to use HPAGE_PMD related values as variables

With next generation power processor, we are having a new mmu model
[1] that require us to maintain a different linux page table format.

Inorder to support both current and future ppc64 systems with a single
kernel we need to make sure kernel can select between different page
table format at runtime. With the new MMU (radix MMU) added, we will
have two different pmd hugepage size 16MB for hash model and 2MB for
Radix model. Hence make HPAGE_PMD related values as a variable.

Actual conversion of HPAGE_PMD to a variable for ppc64 happens in a
followup patch.

[1] http://ibm.biz/power-isa3 (Needs registration).

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable_64.c
include/linux/bug.h
include/linux/huge_mm.h
mm/huge_memory.c