RFC mm: Promote huge_pmd_share from x86 to mm.
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm: hugetlb: Copy huge_pmd_share from x86 to mm.include/ mm/ | +126 | 3 replies | |
| 2/2 | x86: mm: Remove x86 version of huge_pmd_share.arch/ arch/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/2] mm: Promote huge_pmd_share from x86 to mm.
Under x86, multiple puds can be made to reference the same bank of huge pmds provided that they represent a full PUD_SIZE of shared huge memory that is aligned to a PUD_SIZE boundary.
The code to share pmds does not require any architecture specific knowledge other than the fact that pmds can be indexed, thus can be beneficial to some other architectures.
This RFC promotes the huge_pmd_share code (and dependencies) from x86 to mm to make it accessible to other architectures.
I am working on ARM64 support for huge pages and rather than duplicate the x86 huge_pmd_share code, I thought it would be better to promote it to mm.
Comments would be very welcome.
Cheers,
Signature · 20 lines
Steve Steve Capper (2): mm: hugetlb: Copy huge_pmd_share from x86 to mm. x86: mm: Remove x86 version of huge_pmd_share. arch/x86/Kconfig | 3 ++ arch/x86/mm/hugetlbpage.c | 120 --------------------------------------------- include/linux/hugetlb.h | 4 ++ mm/hugetlb.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 129 insertions(+), 120 deletions(-) -- 1.8.1.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>