aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/perf-sys.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-08-17 15:44:36 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-08-17 15:51:25 -0400
commit4717e03cc7e826818c3f9bd60e9c304a3309c3ad (patch)
treec38b1cd52ab65bd4631512e2052d17fe12d55c25 /tools/perf/perf-sys.h
parent5d9cdc1181c34f959e9fb8e24624223172071871 (diff)
perf tools: Remove unused cpu_relax() macros
Since 195564390210 ("perf_counter: kerneltop: simplify data_head read") we do not use it, and this was way back in 2009, remove it before some other arch maintainer adds its implementation, like so many did, needlessly :-) Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-3l2su9c58eaq4twjzrf9uu08@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf-sys.h')
-rw-r--r--tools/perf/perf-sys.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
index e4b717e9eb6c..2aaa7366cdc2 100644
--- a/tools/perf/perf-sys.h
+++ b/tools/perf/perf-sys.h
@@ -10,12 +10,10 @@
10#include <asm/barrier.h> 10#include <asm/barrier.h>
11 11
12#if defined(__i386__) 12#if defined(__i386__)
13#define cpu_relax() asm volatile("rep; nop" ::: "memory");
14#define CPUINFO_PROC {"model name"} 13#define CPUINFO_PROC {"model name"}
15#endif 14#endif
16 15
17#if defined(__x86_64__) 16#if defined(__x86_64__)
18#define cpu_relax() asm volatile("rep; nop" ::: "memory");
19#define CPUINFO_PROC {"model name"} 17#define CPUINFO_PROC {"model name"}
20#endif 18#endif
21 19
@@ -44,7 +42,6 @@
44#endif 42#endif
45 43
46#ifdef __ia64__ 44#ifdef __ia64__
47#define cpu_relax() asm volatile ("hint @pause" ::: "memory")
48#define CPUINFO_PROC {"model name"} 45#define CPUINFO_PROC {"model name"}
49#endif 46#endif
50 47
@@ -53,7 +50,6 @@
53#endif 50#endif
54 51
55#ifdef __aarch64__ 52#ifdef __aarch64__
56#define cpu_relax() asm volatile("yield" ::: "memory")
57#endif 53#endif
58 54
59#ifdef __mips__ 55#ifdef __mips__
@@ -73,14 +69,9 @@
73#endif 69#endif
74 70
75#ifdef __tile__ 71#ifdef __tile__
76#define cpu_relax() asm volatile ("mfspr zero, PASS" ::: "memory")
77#define CPUINFO_PROC {"model name"} 72#define CPUINFO_PROC {"model name"}
78#endif 73#endif
79 74
80#ifndef cpu_relax
81#define cpu_relax() barrier()
82#endif
83
84static inline int 75static inline int
85sys_perf_event_open(struct perf_event_attr *attr, 76sys_perf_event_open(struct perf_event_attr *attr,
86 pid_t pid, int cpu, int group_fd, 77 pid_t pid, int cpu, int group_fd,