summaryrefslogtreecommitdiff
path: root/tools/perf/util/thread_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/thread_map.h')
-rw-r--r--tools/perf/util/thread_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/thread_map.h b/tools/perf/util/thread_map.h
index ea0ef08c6303..bd34d7a0b9fa 100644
--- a/tools/perf/util/thread_map.h
+++ b/tools/perf/util/thread_map.h
@@ -3,7 +3,7 @@
#include <sys/types.h>
#include <stdio.h>
-#include <linux/atomic.h>
+#include <linux/refcount.h>
struct thread_map_data {
pid_t pid;
@@ -11,7 +11,7 @@ struct thread_map_data {
};
struct thread_map {
- atomic_t refcnt;
+ refcount_t refcnt;
int nr;
struct thread_map_data map[];
};