Documentation/vm: use better value for MAP_HUGETLB
documentation: slightly more correct value for MAP_HUGETLB in map_hugetlb.c still not correct for alpha, mips, parisc or xtensa but working out of the box in the most common architectures without having to deal with complicated macros or including architecture specific headers. Signed-off-by: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4164fcc2f9
commit
89bbfb6bfb
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
#define PROTECTION (PROT_READ | PROT_WRITE)
|
#define PROTECTION (PROT_READ | PROT_WRITE)
|
||||||
|
|
||||||
#ifndef MAP_HUGETLB
|
#ifndef MAP_HUGETLB
|
||||||
#define MAP_HUGETLB 0x40
|
#define MAP_HUGETLB 0x40000 /* arch specific */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Only ia64 requires this */
|
/* Only ia64 requires this */
|
||||||
|
|
Loading…
Reference in a new issue