| .. | .. |
|---|
| 10 | 10 | * The madvise transparent hugepage constants were added in glibc |
|---|
| 11 | 11 | * 2.13. For compatibility with older versions of glibc, define these |
|---|
| 12 | 12 | * tokens if they are not already defined. |
|---|
| 13 | | - * |
|---|
| 14 | | - * PA-RISC uses different madvise values from other architectures and |
|---|
| 15 | | - * needs to be special-cased. |
|---|
| 16 | 13 | */ |
|---|
| 17 | | -#ifdef __hppa__ |
|---|
| 18 | | -# ifndef MADV_HUGEPAGE |
|---|
| 19 | | -# define MADV_HUGEPAGE 67 |
|---|
| 20 | | -# endif |
|---|
| 21 | | -# ifndef MADV_NOHUGEPAGE |
|---|
| 22 | | -# define MADV_NOHUGEPAGE 68 |
|---|
| 23 | | -# endif |
|---|
| 24 | | -#else |
|---|
| 25 | 14 | # ifndef MADV_HUGEPAGE |
|---|
| 26 | 15 | # define MADV_HUGEPAGE 14 |
|---|
| 27 | 16 | # endif |
|---|
| 28 | 17 | # ifndef MADV_NOHUGEPAGE |
|---|
| 29 | 18 | # define MADV_NOHUGEPAGE 15 |
|---|
| 30 | 19 | # endif |
|---|
| 31 | | -#endif |
|---|
| 32 | 20 | |
|---|
| 33 | 21 | int bench_numa(int argc, const char **argv); |
|---|
| 34 | 22 | int bench_sched_messaging(int argc, const char **argv); |
|---|