aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-04-16 18:25:08 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:25:08 -0400
commit1c1734090ebcd31e479798b3af4c260ae09bf3a4 (patch)
treede5f3374bfb56c0e5a4527b3b0127face20eca3f /include/asm-x86_64
parent72e76be2fedb4db320a4855d870f731c1242a9d3 (diff)
[PATCH] x86_64: Correct wrong comment in local.h
local_t is actually a win over atomic_t because it does not need lock prefixes. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r--include/asm-x86_64/local.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86_64/local.h b/include/asm-x86_64/local.h
index 169c223a8452..c954f15c1a75 100644
--- 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)
45 :"ir" (i), "m" (v->counter)); 45 :"ir" (i), "m" (v->counter));
46} 46}
47 47
48/* On x86, these are no better than the atomic variants. */ 48/* On x86-64 these are better than the atomic variants on SMP kernels
49 because they dont use a lock prefix. */
49#define __local_inc(l) local_inc(l) 50#define __local_inc(l) local_inc(l)
50#define __local_dec(l) local_dec(l) 51#define __local_dec(l) local_dec(l)
51#define __local_add(i,l) local_add((i),(l)) 52#define __local_add(i,l) local_add((i),(l))