Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a826e422 authored by Andrea Arcangeli's avatar Andrea Arcangeli Committed by Linus Torvalds
Browse files

thp: mm: define MADV_HUGEPAGE

parent 1c9bf22c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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

+2 −0
Original line number Diff line number Diff line
@@ -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

+2 −0
Original line number Diff line number Diff line
@@ -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
+2 −0
Original line number Diff line number Diff line
@@ -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

+2 −0
Original line number Diff line number Diff line
@@ -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