Skip to content

Commit

Permalink
Documentation/vm: use better value for MAP_HUGETLB
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Carlo Marcelo Arenas Belon authored and Linus Torvalds committed May 24, 2010
1 parent 4164fcc commit 89bbfb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/vm/map_hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define PROTECTION (PROT_READ | PROT_WRITE)

#ifndef MAP_HUGETLB
#define MAP_HUGETLB 0x40
#define MAP_HUGETLB 0x40000 /* arch specific */
#endif

/* Only ia64 requires this */
Expand Down

0 comments on commit 89bbfb6

Please sign in to comment.