Skip to content

Commit

Permalink
perf tools: Remove unused cpu_relax() macros
Browse files Browse the repository at this point in the history
Since 1955643 ("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 <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
acmel committed Aug 17, 2017
1 parent 5d9cdc1 commit 4717e03
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tools/perf/perf-sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
#include <asm/barrier.h>

#if defined(__i386__)
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
#define CPUINFO_PROC {"model name"}
#endif

#if defined(__x86_64__)
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
#define CPUINFO_PROC {"model name"}
#endif

Expand Down Expand Up @@ -44,7 +42,6 @@
#endif

#ifdef __ia64__
#define cpu_relax() asm volatile ("hint @pause" ::: "memory")
#define CPUINFO_PROC {"model name"}
#endif

Expand All @@ -53,7 +50,6 @@
#endif

#ifdef __aarch64__
#define cpu_relax() asm volatile("yield" ::: "memory")
#endif

#ifdef __mips__
Expand All @@ -73,14 +69,9 @@
#endif

#ifdef __tile__
#define cpu_relax() asm volatile ("mfspr zero, PASS" ::: "memory")
#define CPUINFO_PROC {"model name"}
#endif

#ifndef cpu_relax
#define cpu_relax() barrier()
#endif

static inline int
sys_perf_event_open(struct perf_event_attr *attr,
pid_t pid, int cpu, int group_fd,
Expand Down

0 comments on commit 4717e03

Please sign in to comment.