Skip to content

Commit

Permalink
powerpc/perf: Use uapi/unistd.h to fix build error
Browse files Browse the repository at this point in the history
Use the 'unistd.h' from arch/powerpc/include/uapi to build the perf tool.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Sukadev Bhattiprolu authored and Benjamin Herrenschmidt committed Nov 15, 2012
1 parent 8a56e1e commit d7a1ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void get_term_dimensions(struct winsize *ws);
#endif

#ifdef __powerpc__
#include "../../arch/powerpc/include/asm/unistd.h"
#include "../../arch/powerpc/include/uapi/asm/unistd.h"
#define rmb() asm volatile ("sync" ::: "memory")
#define cpu_relax() asm volatile ("" ::: "memory");
#define CPUINFO_PROC "cpu"
Expand Down

0 comments on commit d7a1ed1

Please sign in to comment.