Skip to content

Commit

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

Signed-off-by: Andrea Arcangeli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
aagit authored and torvalds committed Jan 14, 2011
1 parent 37c2ac7 commit 1ddd6db
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/alpha/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
#define MADV_HWPOISON 100 /* poison a page for testing */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0
Expand Down
1 change: 1 addition & 0 deletions arch/parisc/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#define MADV_UNMERGEABLE 66 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 67 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 68 /* Not worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0
Expand Down
1 change: 1 addition & 0 deletions arch/xtensa/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0
Expand Down
1 change: 1 addition & 0 deletions include/asm-generic/mman-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */

#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */

/* compatibility flags */
#define MAP_FILE 0
Expand Down

0 comments on commit 1ddd6db

Please sign in to comment.