From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bpointsys.com (70-253-197-251.ded.swbell.net [70.253.197.251]) by ozlabs.org (Postfix) with ESMTP id 09B8B679E2 for ; Tue, 16 May 2006 02:54:54 +1000 (EST) From: Brent Cook To: linuxppc-embedded@ozlabs.org Subject: [PATCH] Export PowerPC atomic operations to userspace Date: Mon, 15 May 2006 11:54:52 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-Id: <200605151154.52599.bcook@bpointsys.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Index: linux-2.6-bps/include/asm-powerpc/atomic.h =================================================================== --- linux-2.6-bps/include/asm-powerpc/atomic.h (revision 77) +++ linux-2.6-bps/include/asm-powerpc/atomic.h (working copy) @@ -7,7 +7,6 @@ typedef struct { volatile int counter; } atomic_t; -#ifdef __KERNEL__ #include #include #include @@ -414,5 +413,4 @@ #endif /* __powerpc64__ */ #include -#endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_ATOMIC_H_ */