Messages in this thread | | | Date | Thu, 11 Oct 2012 16:35:41 -0700 | From | Andi Kleen <> | Subject | Re: [PATCH] MM: Support more pagesizes for MAP_HUGETLB/SHM_HUGETLB v3 |
| |
> Alas, include/asm-generic/mman.h doesn't exist now.
git resolved it automagically
> > Does this change touch all the hugetlb-capable architectures?
I took a look at this again. So not every hugetlb capable architecture needs it, only architectures with multiple hugetlb page sizes.
This is only x86, tile, powerpc
I looked at tile and powerpc and they both have configurable hugetlb page sizes. So it's somewhat awkward to add defines for them.
One disadvantage of this is also the user programs would need to know the page sizes that are configured. That is definitely awkward, but I don't know of any way around that.
Luckily there's a way in /sys to query this.
-Andi
> > z:/usr/src/linux-3.6> grep -rl MAP_HUGETLB arch > arch/alpha/include/asm/mman.h > arch/xtensa/include/asm/mman.h > arch/parisc/include/asm/mman.h > arch/tile/include/asm/mman.h > arch/sparc/include/asm/mman.h > arch/powerpc/include/asm/mman.h > arch/mips/include/asm/mman.h
| |