[PATCH] Export PowerPC atomic operations to userspace

Tom Rini trini at kernel.crashing.org
Tue May 16 03:16:29 EST 2006


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 <bcook at bpointsys.com>

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



More information about the Linuxppc-embedded mailing list