From: Brent Cook <bcook@bpointsys.com>
To: linuxppc-embedded@ozlabs.org
Subject: [PATCH] Export PowerPC atomic operations to userspace
Date: Mon, 15 May 2006 11:54:52 -0500 [thread overview]
Message-ID: <200605151154.52599.bcook@bpointsys.com> (raw)
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@bpointsys.com>
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 <linux/compiler.h>
#include <asm/synch.h>
#include <asm/asm-compat.h>
@@ -414,5 +413,4 @@
#endif /* __powerpc64__ */
#include <asm-generic/atomic.h>
-#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_ATOMIC_H_ */
next reply other threads:[~2006-05-15 16:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-15 16:54 Brent Cook [this message]
2006-05-15 17:16 ` [PATCH] Export PowerPC atomic operations to userspace Tom Rini
2006-05-15 18:18 ` Brent Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200605151154.52599.bcook@bpointsys.com \
--to=bcook@bpointsys.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).