projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6
[powerpc.git]
/
include
/
asm-x86_64
/
local.h
diff --git
a/include/asm-x86_64/local.h
b/include/asm-x86_64/local.h
index
169c223
..
c954f15
100644
(file)
--- a/
include/asm-x86_64/local.h
+++ b/
include/asm-x86_64/local.h
@@
-45,7
+45,8
@@
static __inline__ void local_sub(unsigned long i, local_t *v)
:"ir" (i), "m" (v->counter));
}
:"ir" (i), "m" (v->counter));
}
-/* On x86, these are no better than the atomic variants. */
+/* On x86-64 these are better than the atomic variants on SMP kernels
+ because they dont use a lock prefix. */
#define __local_inc(l) local_inc(l)
#define __local_dec(l) local_dec(l)
#define __local_add(i,l) local_add((i),(l))
#define __local_inc(l) local_inc(l)
#define __local_dec(l) local_dec(l)
#define __local_add(i,l) local_add((i),(l))