[PATCH] x86_64: Correct wrong comment in local.h
authorAndi Kleen <ak@suse.de>
Sat, 16 Apr 2005 22:25:08 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:08 +0000 (15:25 -0700)
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>
include/asm-x86_64/local.h

index 169c223a8452177b6c37c02be7356aabc299da7d..c954f15c1a755f850c60b7e0f0c05a17b1feb2b8 100644 (file)
@@ -45,7 +45,8 @@ static __inline__ void local_sub(unsigned long i, local_t *v)
                :"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))