summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2022-12-20 15:02:03 -0800
committerAndrew Morton <akpm@linux-foundation.org>2022-12-20 15:02:03 -0800
commit1644d755d0b06d0f1ee93e1c44336c29386546b4 (patch)
tree58f4fb795fed3f4b2c1cb6bbac9ed25b3134d390 /tools/perf
parentb29e6ece454f7f4822b40441da393c3969c312b3 (diff)
parentb6bb9676f2165d518b35ba3bea5f1fcfc0d969bf (diff)
Merge branch 'linus'
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/bench/bench.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/perf/bench/bench.h b/tools/perf/bench/bench.h
index 6cefb4315d75..a5d49b3b6a09 100644
--- a/tools/perf/bench/bench.h
+++ b/tools/perf/bench/bench.h
@@ -10,25 +10,13 @@ extern struct timeval bench__start, bench__end, bench__runtime;
* The madvise transparent hugepage constants were added in glibc
* 2.13. For compatibility with older versions of glibc, define these
* tokens if they are not already defined.
- *
- * PA-RISC uses different madvise values from other architectures and
- * needs to be special-cased.
*/
-#ifdef __hppa__
-# ifndef MADV_HUGEPAGE
-# define MADV_HUGEPAGE 67
-# endif
-# ifndef MADV_NOHUGEPAGE
-# define MADV_NOHUGEPAGE 68
-# endif
-#else
# ifndef MADV_HUGEPAGE
# define MADV_HUGEPAGE 14
# endif
# ifndef MADV_NOHUGEPAGE
# define MADV_NOHUGEPAGE 15
# endif
-#endif
int bench_numa(int argc, const char **argv);
int bench_sched_messaging(int argc, const char **argv);