]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
thp: mm: define MADV_HUGEPAGE
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:46:31 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:38 +0000 (17:32 -0800)
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>
arch/alpha/include/asm/mman.h
arch/mips/include/asm/mman.h
arch/parisc/include/asm/mman.h
arch/xtensa/include/asm/mman.h
include/asm-generic/mman-common.h

index 99c56d47879dfe52645604d55a4c32ce230e255a..f7465418a8f395f38345686de3d2a8a779e0814d 100644 (file)
@@ -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
 
index c892bfb3e2c1d74eca5a902194e71b46f3e87635..9d8184c527ffe07835dbd8be1e8c5544b6e3ca84 100644 (file)
@@ -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
 
index 9749c8afe83ae6a5c198e0bb8520d0ffa71656fa..533c5dc173c11d376feb830b2ac67b032b07b1d5 100644 (file)
@@ -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
index fca4db425f6ec5a694e56c0972aa8f4f9875cf32..41be9a1ee08f88df9c93aecc168c5c660eaca30e 100644 (file)
@@ -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
 
index 3da9e2742fa0ec2e7c80a0490ec7c783bdda7f7b..e91392fde4c6b9646aac0ea3f7cfec6f2c77a901 100644 (file)
@@ -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