parisc: Add MADV_HWPOISON and MADV_SOFT_OFFLINE

Add the missing MADV_HWPOISON (100) and MADV_SOFT_OFFLINE (101) defines which
are needed for an upcoming patch which adds page-deallocation for parisc.

Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Helge Deller 2017-08-04 20:07:41 +02:00
parent 14ccee78fc
commit 24587380f6
2 changed files with 3 additions and 2 deletions

View File

@ -60,6 +60,9 @@
overrides the coredump filter bits */ overrides the coredump filter bits */
#define MADV_DODUMP 70 /* Clear the MADV_NODUMP flag */ #define MADV_DODUMP 70 /* Clear the MADV_NODUMP flag */
#define MADV_HWPOISON 100 /* poison a page for testing */
#define MADV_SOFT_OFFLINE 101 /* soft offline page for testing */
/* compatibility flags */ /* compatibility flags */
#define MAP_FILE 0 #define MAP_FILE 0
#define MAP_VARIABLE 0 #define MAP_VARIABLE 0

View File

@ -36,9 +36,7 @@
#define PROT_READ 0x1 #define PROT_READ 0x1
#define PROT_SEM 0x8 #define PROT_SEM 0x8
#define PROT_WRITE 0x2 #define PROT_WRITE 0x2
/* MADV_HWPOISON is undefined on parisc, fix it for perf */
#define MADV_HWPOISON 100 #define MADV_HWPOISON 100
/* MADV_SOFT_OFFLINE is undefined on parisc, fix it for perf */
#define MADV_SOFT_OFFLINE 101 #define MADV_SOFT_OFFLINE 101
/* MAP_32BIT is undefined on parisc, fix it for perf */ /* MAP_32BIT is undefined on parisc, fix it for perf */
#define MAP_32BIT 0 #define MAP_32BIT 0