From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [RFC][PATCH 3/3] Remove xnarch_atomic_intptr wrappers
Date: Wed, 27 Aug 2008 16:08:07 +0200 [thread overview]
Message-ID: <48B55FC7.60201@domain.hid> (raw)
In-Reply-To: <48B5592B.1090005@domain.hid>
No more users, no more use cases in sight, let's get rid of it.
---
include/asm-arm/atomic.h | 3 ---
include/asm-blackfin/atomic.h | 2 --
include/asm-generic/Makefile.am | 2 +-
include/asm-generic/Makefile.in | 2 +-
include/asm-generic/atomic.h | 24 ------------------------
include/asm-ia64/atomic.h | 2 --
include/asm-powerpc/atomic.h | 2 --
include/asm-x86/atomic.h | 2 --
8 files changed, 2 insertions(+), 37 deletions(-)
Index: b/include/asm-arm/atomic.h
===================================================================
--- a/include/asm-arm/atomic.h
+++ b/include/asm-arm/atomic.h
@@ -412,9 +412,6 @@ static __inline__ void xnarch_atomic_cle
typedef unsigned long atomic_flags_t;
-/* Add support for xnarch_atomic_intptr_t */
-#include <asm-generic/xenomai/atomic.h>
-
#endif /* !_XENO_ASM_ARM_ATOMIC_H */
// vim: ts=4 et sw=4 sts=4
Index: b/include/asm-blackfin/atomic.h
===================================================================
--- a/include/asm-blackfin/atomic.h
+++ b/include/asm-blackfin/atomic.h
@@ -42,8 +42,6 @@
typedef atomic_t atomic_counter_t;
typedef atomic_t xnarch_atomic_t;
-#include <asm-generic/xenomai/atomic.h>
-
#else /* !__KERNEL__ */
#include <asm/xenomai/syscall.h>
Index: b/include/asm-generic/Makefile.am
===================================================================
--- a/include/asm-generic/Makefile.am
+++ b/include/asm-generic/Makefile.am
@@ -1,5 +1,5 @@
includesubdir = $(includedir)/asm-generic
-includesub_HEADERS = arith.h atomic.h features.h hal.h syscall.h system.h wrappers.h
+includesub_HEADERS = arith.h features.h hal.h syscall.h system.h wrappers.h
SUBDIRS = bits
Index: b/include/asm-generic/Makefile.in
===================================================================
--- a/include/asm-generic/Makefile.in
+++ b/include/asm-generic/Makefile.in
@@ -226,7 +226,7 @@ target_vendor = @target_vendor@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
includesubdir = $(includedir)/asm-generic
-includesub_HEADERS = arith.h atomic.h features.h hal.h syscall.h system.h wrappers.h
+includesub_HEADERS = arith.h features.h hal.h syscall.h system.h wrappers.h
SUBDIRS = bits
all: all-recursive
Index: b/include/asm-generic/atomic.h
===================================================================
--- a/include/asm-generic/atomic.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef _XENO_ASM_GENERIC_ATOMIC_H
-#define _XENO_ASM_GENERIC_ATOMIC_H
-
-typedef xnarch_atomic_t xnarch_atomic_intptr_t;
-
-static inline void *xnarch_atomic_intptr_get(xnarch_atomic_intptr_t *l)
-{
- xnarch_atomic_t *v = (xnarch_atomic_t *)l;
-
- return (void *)xnarch_atomic_get(v);
-}
-
-static inline void xnarch_atomic_intptr_set(xnarch_atomic_intptr_t *l, void *i)
-{
- xnarch_atomic_t *v = (xnarch_atomic_t *)l;
-
- xnarch_atomic_set(v, (long)i);
-}
-
-#define xnarch_atomic_intptr_cmpxchg(l, old, newval) \
- (void *)(xnarch_atomic_cmpxchg((xnarch_atomic_t *)(l), \
- (long)(old), (long)(newval)))
-
-#endif /* _XENO_ASM_GENERIC_ATOMIC_H */
Index: b/include/asm-ia64/atomic.h
===================================================================
--- a/include/asm-ia64/atomic.h
+++ b/include/asm-ia64/atomic.h
@@ -71,8 +71,6 @@ static inline void atomic_clear_mask(uns
#define xnarch_atomic_cmpxchg(pcounter,old,new) \
cmpxchg((&(pcounter)->counter),(old),(new))
-#include <asm-generic/xenomai/atomic.h>
-
#else /* !__KERNEL__ */
#include <asm/xenomai/features.h>
Index: b/include/asm-powerpc/atomic.h
===================================================================
--- a/include/asm-powerpc/atomic.h
+++ b/include/asm-powerpc/atomic.h
@@ -262,6 +262,4 @@ xnarch_atomic_cmpxchg(xnarch_atomic_t *p
typedef unsigned long atomic_flags_t;
-#include <asm-generic/xenomai/atomic.h>
-
#endif /* !_XENO_ASM_POWERPC_ATOMIC_H */
Index: b/include/asm-x86/atomic.h
===================================================================
--- a/include/asm-x86/atomic.h
+++ b/include/asm-x86/atomic.h
@@ -136,6 +136,4 @@ xnarch_atomic_cmpxchg(xnarch_atomic_t *v
#endif /* __KERNEL__ */
-#include <asm-generic/xenomai/atomic.h>
-
#endif /* !_XENO_ASM_X86_ATOMIC_64_H */
prev parent reply other threads:[~2008-08-27 14:08 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-27 13:39 [Xenomai-core] [RFC][PATCH 0/3] Handle-based fast mutex owner tracking Jan Kiszka
2008-08-27 13:42 ` [Xenomai-core] [RFC][PATCH 1/3] Always register threads by their base Jan Kiszka
2008-08-27 14:06 ` [Xenomai-core] [RFC][PATCH 2/3] Switch to handle-based fast mutex owners Jan Kiszka
2008-08-27 14:14 ` Gilles Chanteperdrix
2008-08-27 14:38 ` Jan Kiszka
2008-08-27 14:44 ` Gilles Chanteperdrix
2008-08-27 14:49 ` Jan Kiszka
2008-08-27 14:57 ` Gilles Chanteperdrix
2008-08-27 23:49 ` Gilles Chanteperdrix
2008-08-27 14:36 ` Gilles Chanteperdrix
2008-08-27 14:45 ` Jan Kiszka
2008-08-27 14:47 ` Gilles Chanteperdrix
2008-08-27 14:51 ` Jan Kiszka
2008-08-27 14:55 ` Gilles Chanteperdrix
2008-08-27 15:00 ` Jan Kiszka
2008-08-27 15:04 ` Gilles Chanteperdrix
2008-08-27 15:10 ` Jan Kiszka
2008-08-27 15:13 ` Gilles Chanteperdrix
2008-08-27 15:15 ` Gilles Chanteperdrix
2008-08-27 15:18 ` Jan Kiszka
2008-08-27 15:29 ` Gilles Chanteperdrix
2008-08-27 15:34 ` Jan Kiszka
2008-08-27 15:36 ` Gilles Chanteperdrix
2008-08-27 15:37 ` Jan Kiszka
2008-08-27 23:44 ` Gilles Chanteperdrix
2008-08-27 14:48 ` Gilles Chanteperdrix
2008-08-27 14:50 ` Gilles Chanteperdrix
2008-08-27 15:20 ` Jan Kiszka
2008-08-27 15:28 ` Gilles Chanteperdrix
2008-08-27 15:43 ` Jan Kiszka
2008-08-27 15:46 ` Gilles Chanteperdrix
2008-08-27 16:08 ` Jan Kiszka
2008-08-27 16:13 ` Gilles Chanteperdrix
2008-08-27 18:15 ` Jan Kiszka
2008-08-27 19:02 ` Gilles Chanteperdrix
2008-08-27 19:04 ` Gilles Chanteperdrix
2008-08-27 20:35 ` Jan Kiszka
2008-08-27 21:26 ` Gilles Chanteperdrix
2008-08-27 21:46 ` Jan Kiszka
2008-08-27 21:55 ` Gilles Chanteperdrix
2008-08-27 20:33 ` Jan Kiszka
2008-08-27 22:45 ` Gilles Chanteperdrix
2008-08-28 10:01 ` Philippe Gerum
2008-08-28 10:37 ` Jan Kiszka
2008-08-28 10:52 ` Philippe Gerum
2008-08-28 12:21 ` Gilles Chanteperdrix
2008-08-29 6:41 ` Jan Kiszka
2008-08-29 7:00 ` Gilles Chanteperdrix
2008-08-29 7:22 ` Jan Kiszka
2008-08-29 7:29 ` Gilles Chanteperdrix
2008-08-29 9:36 ` Jan Kiszka
2008-08-29 9:41 ` Gilles Chanteperdrix
2008-08-29 10:37 ` Jan Kiszka
2008-08-29 12:19 ` Gilles Chanteperdrix
2008-08-29 10:39 ` Philippe Gerum
2008-08-29 10:46 ` Jan Kiszka
2008-08-29 12:30 ` Philippe Gerum
2008-08-29 12:40 ` Jan Kiszka
2008-08-29 13:10 ` Philippe Gerum
2008-08-29 13:25 ` Jan Kiszka
2008-08-27 23:05 ` Gilles Chanteperdrix
2008-08-28 7:29 ` Jan Kiszka
2008-08-28 7:38 ` Gilles Chanteperdrix
2008-08-27 23:14 ` Gilles Chanteperdrix
2008-08-28 7:30 ` Jan Kiszka
2008-08-28 8:20 ` Gilles Chanteperdrix
2008-08-28 9:21 ` Jan Kiszka
2008-08-27 14:08 ` Jan Kiszka [this message]
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=48B55FC7.60201@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.