Skip to content

Commit

Permalink
remove kernel version check
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomlneto authored and andikleen committed Oct 4, 2018
1 parent 8fa4b69 commit a557cc5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions numaif.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef NUMAIF_H
#define NUMAIF_H 1

#include <linux/version.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -28,12 +26,8 @@ extern long move_pages(int pid, unsigned long count,
#define MPOL_PREFERRED 1
#define MPOL_BIND 2
#define MPOL_INTERLEAVE 3
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
#define MPOL_LOCAL 4
#define MPOL_MAX 5
#else
#define MPOL_MAX 4
#endif

/* Flags for get_mem_policy */
#define MPOL_F_NODE (1<<0) /* return next il node or node of address */
Expand Down

0 comments on commit a557cc5

Please sign in to comment.