git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
asm-i386
/
atomic.h
diff --git
a/include/asm-i386/atomic.h
b/include/asm-i386/atomic.h
index
51a1662
..
c57441b
100644
(file)
--- a/
include/asm-i386/atomic.h
+++ b/
include/asm-i386/atomic.h
@@
-14,7
+14,7
@@
* on us. We need to use _exactly_ the address the user gave us,
* not some alias that contains the same information.
*/
* on us. We need to use _exactly_ the address the user gave us,
* not some alias that contains the same information.
*/
-typedef struct {
volatile
int counter; } atomic_t;
+typedef struct { int counter; } atomic_t;
#define ATOMIC_INIT(i) { (i) }
#define ATOMIC_INIT(i) { (i) }
@@
-187,9
+187,9
@@
static __inline__ int atomic_add_return(int i, atomic_t *v)
/* Modern 486+ processor */
__i = i;
__asm__ __volatile__(
/* Modern 486+ processor */
__i = i;
__asm__ __volatile__(
- LOCK_PREFIX "xaddl %0, %1
;
"
- :"
=r"(i
)
- :
"m"(v->counter), "0"(i)
);
+ LOCK_PREFIX "xaddl %0, %1"
+ :"
+r" (i), "+m" (v->counter
)
+ :
: "memory"
);
return i + __i;
#ifdef CONFIG_M386
return i + __i;
#ifdef CONFIG_M386