aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/cgroup.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-05-15 16:12:20 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-15 16:12:20 -0300
commitf812d3045c2385ac16237e68b156859c4005526e (patch)
treeba298a8fb0046c908913765045ad2f27765e4f0d /tools/perf/util/cgroup.h
parentperf evlist: Use atomic.h for the perf_mmap refcount (diff)
downloadlinux-dev-f812d3045c2385ac16237e68b156859c4005526e.tar.xz
linux-dev-f812d3045c2385ac16237e68b156859c4005526e.zip
perf cgroup: Use atomic.h for refcounting
Now that we have atomic.h, we should convert all of the existing refcounts to use it. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-t3v2uma5digcj2tpkrs3m84u@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/cgroup.h')
-rw-r--r--tools/perf/util/cgroup.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/cgroup.h b/tools/perf/util/cgroup.h
index 89acd6debdc5..b4b8cb42fe5e 100644
--- a/tools/perf/util/cgroup.h
+++ b/tools/perf/util/cgroup.h
@@ -1,12 +1,14 @@
#ifndef __CGROUP_H__
#define __CGROUP_H__
+#include <linux/atomic.h>
+
struct option;
struct cgroup_sel {
char *name;
int fd;
- int refcnt;
+ atomic_t refcnt;
};