Skip to content

Commit

Permalink
perf powerpc: 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 <[email protected]>
Acked-by: David Howells <[email protected]>
Cc: Anton Blanchard <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Robert Richter <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
Sukadev Bhattiprolu authored and acmel committed Nov 14, 2012
1 parent 1668fc6 commit 1483c2a
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 1483c2a

Please sign in to comment.