perf machine: Stop accessing atomic_t::counter directly
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 May 2015 18:32:55 +0000 (15:32 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 May 2015 18:32:55 +0000 (15:32 -0300)
commit59a51c1dc9fbb3fb4af928b852d7b35df83edd74
tree99e2b00a4edb911a46578c9279264848f6e384ef
parent848cbd2562bb85953884be72b3bdbee0b2f32474
perf machine: Stop accessing atomic_t::counter directly

Use atomic_read(&counter) instead.

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-k3hvfvpaut8wp02lzq27muhb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c