diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-06 11:14:56 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-12 14:19:52 -0400 |
commit | 8a15858904c803450b6763d09f53d9a1dc7ab1c3 (patch) | |
tree | 604ad7f2440a77150461ca57c6a828402073dd61 /tools/perf/bench/futex-wake-parallel.c | |
parent | c8b5f2c96d1bf6cefcbe12f67dce0b892fe20512 (diff) |
perf bench: Add missing pthread.h include for CPU_*() macros
Cc: David Ahern <dsahern@gmail.com>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-48qbfv7tqs8n8ey74lbyfjtq@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/bench/futex-wake-parallel.c')
-rw-r--r-- | tools/perf/bench/futex-wake-parallel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/bench/futex-wake-parallel.c b/tools/perf/bench/futex-wake-parallel.c index 91aaf2a1fa90..aca12284d8af 100644 --- a/tools/perf/bench/futex-wake-parallel.c +++ b/tools/perf/bench/futex-wake-parallel.c | |||
@@ -7,6 +7,9 @@ | |||
7 | * it can be used to measure futex_wake() changes. | 7 | * it can be used to measure futex_wake() changes. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | /* For the CLR_() macros */ | ||
11 | #include <pthread.h> | ||
12 | |||
10 | #include "../perf.h" | 13 | #include "../perf.h" |
11 | #include "../util/util.h" | 14 | #include "../util/util.h" |
12 | #include "../util/stat.h" | 15 | #include "../util/stat.h" |
@@ -18,7 +21,6 @@ | |||
18 | #include <err.h> | 21 | #include <err.h> |
19 | #include <stdlib.h> | 22 | #include <stdlib.h> |
20 | #include <sys/time.h> | 23 | #include <sys/time.h> |
21 | #include <pthread.h> | ||
22 | 24 | ||
23 | struct thread_data { | 25 | struct thread_data { |
24 | pthread_t worker; | 26 | pthread_t worker; |