From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753124AbbEHOxb (ORCPT ); Fri, 8 May 2015 10:53:31 -0400 Received: from mail.kernel.org ([198.145.29.136]:37882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751003AbbEHOx3 (ORCPT ); Fri, 8 May 2015 10:53:29 -0400 Date: Fri, 8 May 2015 11:52:55 -0300 From: Arnaldo Carvalho de Melo To: Peter Zijlstra Cc: Will Deacon , Ingo Molnar , David Ahern , Jiri Olsa , Namhyung Kim , Linux Kernel Mailing List Subject: Re: Question about barriers for ARM on tools/perf/ Message-ID: <20150508145255.GK7862@kernel.org> References: <20150508140459.GI7862@kernel.org> <20150508142107.GA25587@arm.com> <20150508142513.GM27504@twins.programming.kicks-ass.net> <20150508143729.GJ7862@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150508143729.GJ7862@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, May 08, 2015 at 11:37:29AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, May 08, 2015 at 04:25:13PM +0200, Peter Zijlstra escreveu: > > He wants to do smp refcounting, which needs atomic_inc() / > > atomic_inc_non_zero() / atomic_dec_return() etc.. > Right, Will concentrated on what we use those barriers for right now in > tools/perf. So, for reference, and this just moves what was already in tools/perf/perf-sys.h to a place that is named as the kernel is and when what was used in perf-sys.h is the same as in the kernel, uses the same kernel source excerpts: https://git.kernel.org/cgit/linux/kernel/git/acme/linux.git/log/?h=tmp.perf/barrier - Arnaldo