From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fed1rmmtai08.cox.net (fed1rmmtai08.cox.net [68.230.241.51]) by ozlabs.org (Postfix) with ESMTP id DE08D67A79 for ; Tue, 16 May 2006 04:20:52 +1000 (EST) Date: Mon, 15 May 2006 10:16:29 -0700 From: Tom Rini To: Brent Cook Subject: Re: [PATCH] Export PowerPC atomic operations to userspace Message-ID: <20060515171629.GC22868@smtp.west.cox.net> References: <200605151154.52599.bcook@bpointsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <200605151154.52599.bcook@bpointsys.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, May 15, 2006 at 11:54:52AM -0500, Brent Cook wrote: > The atomic operations in asm/atomic.h are really useful from userspace too. > Other architectures (i386, x86_64, mips) export these to userspace, but the > powerpc versions are guarded by __KERNEL__ for some reason. Can we remove > these if there is no good reason to guard them? > > Signed-off-by: Brent Cook NAK. i386, x86_64 and mips are broken in this regard. Please google up the previous threads that explain why you can't always get atomic operations on all architectures and why exporting this is bad. -- Tom Rini