ACK: [Vivid][SRU][PATCH] UBUNTU: SAUCE: Don't use atomic read in evlist.c
Luis Henriques
luis.henriques at canonical.com
Tue Jul 7 17:03:18 UTC 2015
On Tue, Jul 07, 2015 at 12:00:10PM -0500, Chris J Arges wrote:
> 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
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Cheers,
--
Luís
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20150707/b70ab98b/attachment.sig>
More information about the kernel-team
mailing list