[Vivid][SRU][PATCH] UBUNTU: SAUCE: Don't use atomic read in evlist.c
Chris J Arges
chris.j.arges at canonical.com
Tue Jul 7 17:00:10 UTC 2015
BugLink: http://bugs.launchpad.net/bugs/1410673
commit 19a64c0f56ebb33fd8a19ac65351161557846236 introduced a build error
because it references atomic_read before changes to evlist.h adding atomic_t
and proper includes files. Instead of including additional changes, use the
older way of simply using refcnt without using atomic_read.
Signed-off-by: Chris J Arges <chris.j.arges at canonical.com>
---
tools/perf/util/evlist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
index 5460e65..cc171f0 100644
--- a/tools/perf/util/evlist.c
+++ b/tools/perf/util/evlist.c
@@ -643,7 +643,7 @@ union perf_event *perf_evlist__mmap_read(struct perf_evlist *evlist, int idx)
/*
* Check if event was unmapped due to a POLLHUP/POLLERR.
*/
- if (!atomic_read(&md->refcnt))
+ if (!md->refcnt)
return NULL;
head = perf_mmap__read_head(md);
--
1.9.1
More information about the kernel-team
mailing list