Skip to content

Commit

Permalink
thp: mm: define MADV_HUGEPAGE
Browse files Browse the repository at this point in the history
Define MADV_HUGEPAGE.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrea Arcangeli authored and Linus Torvalds committed Jan 14, 2011
1 parent 1c9bf22 commit a826e42
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/alpha/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
#define MADV_MERGEABLE 12 /* KSM may merge identical pages */
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0

Expand Down
2 changes: 2 additions & 0 deletions arch/mips/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */
#define MADV_HWPOISON 100 /* poison a page for testing */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0

Expand Down
2 changes: 2 additions & 0 deletions arch/parisc/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
#define MADV_MERGEABLE 65 /* KSM may merge identical pages */
#define MADV_UNMERGEABLE 66 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 67 /* Worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0
#define MAP_VARIABLE 0
Expand Down
2 changes: 2 additions & 0 deletions arch/xtensa/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
#define MADV_MERGEABLE 12 /* KSM may merge identical pages */
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0

Expand Down
2 changes: 2 additions & 0 deletions include/asm-generic/mman-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
#define MADV_MERGEABLE 12 /* KSM may merge identical pages */
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0

Expand Down

0 comments on commit a826e42

Please sign in to comment.