Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762655AbZLKVWw (ORCPT ); Fri, 11 Dec 2009 16:22:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759184AbZLKVWr (ORCPT ); Fri, 11 Dec 2009 16:22:47 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:52724 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758850AbZLKVWr (ORCPT ); Fri, 11 Dec 2009 16:22:47 -0500 Date: Fri, 11 Dec 2009 21:22:22 +0000 From: Russell King - ARM Linux To: Mikael Pettersson Cc: Jamie Iles , Ingo Molnar , linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [PATCH 1/2] perf tools: allow building for ARM Message-ID: <20091211212222.GD12628@n2100.arm.linux.org.uk> References: <1260523260-15694-1-git-send-email-jamie.iles@picochip.com> <20091211102316.GB16882@elte.hu> <20091211103030.GC4164@wear.picochip.com> <20091211103848.GA9947@elte.hu> <20091211110111.GD4164@wear.picochip.com> <19234.11393.632298.555005@pilspetsen.it.uu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19234.11393.632298.555005@pilspetsen.it.uu.se> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 719 Lines: 15 On Fri, Dec 11, 2009 at 12:26:57PM +0100, Mikael Pettersson wrote: > The correct solution is to invoke a kernel-exported CPU-specific helper > function in the ARM kernel helper page. > > I see a __kuser_memory_barrier entry there which maps to smp_dmb. That is indeed the correct way to do this - otherwise user programs will be tied to particular architecture versions, and either an undefined instruction fault will happen, or worse, the desired effect will not happen. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/