diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-06 15:14:56 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-12 18:19:52 +0000 |
| commit | 8a15858904c803450b6763d09f53d9a1dc7ab1c3 (patch) | |
| tree | 604ad7f2440a77150461ca57c6a828402073dd61 /tools/perf/bench/futex-requeue.c | |
| parent | tools: Introduce str_error_r() (diff) | |
| download | kernel-8a15858904c803450b6763d09f53d9a1dc7ab1c3.tar.gz kernel-8a15858904c803450b6763d09f53d9a1dc7ab1c3.zip | |
perf bench: Add missing pthread.h include for CPU_*() macros
Cc: David Ahern <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Hitoshi Mitake <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/bench/futex-requeue.c')
| -rw-r--r-- | tools/perf/bench/futex-requeue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/bench/futex-requeue.c b/tools/perf/bench/futex-requeue.c index 718238683013..7d9712c8ff01 100644 --- a/tools/perf/bench/futex-requeue.c +++ b/tools/perf/bench/futex-requeue.c @@ -8,6 +8,9 @@ * requeues without waking up any tasks -- thus mimicking a regular futex_wait. */ +/* For the CLR_() macros */ +#include <pthread.h> + #include "../perf.h" #include "../util/util.h" #include "../util/stat.h" @@ -19,7 +22,6 @@ #include <err.h> #include <stdlib.h> #include <sys/time.h> -#include <pthread.h> static u_int32_t futex1 = 0, futex2 = 0; |
