From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751650AbaI0HZv (ORCPT ); Sat, 27 Sep 2014 03:25:51 -0400 Received: from terminus.zytor.com ([198.137.202.10]:41203 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbaI0HZu (ORCPT ); Sat, 27 Sep 2014 03:25:50 -0400 Date: Sat, 27 Sep 2014 00:25:23 -0700 From: tip-bot for Pranith Kumar Message-ID: Cc: acme@redhat.com, linux-kernel@vger.kernel.org, paulus@samba.org, mingo@redhat.com, hpa@zytor.com, mingo@kernel.org, jolsa@kernel.org, bobby.prani@gmail.com, a.p.zijlstra@chello.nl, namhyung@kernel.org, adrian.hunter@intel.com, dsahern@gmail.com, tglx@linutronix.de Reply-To: mingo@kernel.org, hpa@zytor.com, mingo@redhat.com, paulus@samba.org, linux-kernel@vger.kernel.org, acme@redhat.com, bobby.prani@gmail.com, jolsa@kernel.org, a.p.zijlstra@chello.nl, namhyung@kernel.org, dsahern@gmail.com, adrian.hunter@intel.com, tglx@linutronix.de In-Reply-To: <1411484109-10442-1-git-send-email-bobby.prani@gmail.com> References: <1411484109-10442-1-git-send-email-bobby.prani@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Use ACCESS_ONCE() instead of volatile cast Git-Commit-ID: 1da34daf24823f19cfd56c97973334cd95635926 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 1da34daf24823f19cfd56c97973334cd95635926 Gitweb: http://git.kernel.org/tip/1da34daf24823f19cfd56c97973334cd95635926 Author: Pranith Kumar AuthorDate: Tue, 23 Sep 2014 10:55:08 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 26 Sep 2014 12:36:03 -0300 perf tools: Use ACCESS_ONCE() instead of volatile cast Use ACCESS_ONCE() instead of the cast to volatile and read. This is just a style change which is reader friendly. Signed-off-by: Pranith Kumar Acked-by: Namhyung Kim Cc: Adrian Hunter Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1411484109-10442-1-git-send-email-bobby.prani@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 8dd41ca..ffb4404 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h @@ -126,5 +126,5 @@ int __perf_session__set_tracepoints_handlers(struct perf_session *session, extern volatile int session_done; -#define session_done() (*(volatile int *)(&session_done)) +#define session_done() ACCESS_ONCE(session_done) #endif /* __PERF_SESSION_H */