diff options
author | Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> | 2012-10-31 14:21:28 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-11-19 17:10:41 -0500 |
commit | f2d9cae9ea9e0228f6eb4d4c5ab4f548d0270d1a (patch) | |
tree | 2d076f3da6c2fdf1f2e8f7daf191a47f9216e376 /tools | |
parent | 2b73f65d114b44b9bc9bd7d229f603e4cd5c1a88 (diff) |
perf powerpc: Use uapi/unistd.h to fix build error
Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool.
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Cc: Anton Blanchard <anton@au1.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Robert Richter <robert.richter@amd.com>
Cc: linuxppc-dev@ozlabs.org
Link: http://lkml.kernel.org/r/20121107191818.GA16211@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/perf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index c50985eaec41..e2ba8f004d32 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -26,7 +26,7 @@ void get_term_dimensions(struct winsize *ws); | |||
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | #ifdef __powerpc__ | 28 | #ifdef __powerpc__ |
29 | #include "../../arch/powerpc/include/asm/unistd.h" | 29 | #include "../../arch/powerpc/include/uapi/asm/unistd.h" |
30 | #define rmb() asm volatile ("sync" ::: "memory") | 30 | #define rmb() asm volatile ("sync" ::: "memory") |
31 | #define cpu_relax() asm volatile ("" ::: "memory"); | 31 | #define cpu_relax() asm volatile ("" ::: "memory"); |
32 | #define CPUINFO_PROC "cpu" | 32 | #define CPUINFO_PROC "cpu" |